# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman 安装 dbus-glib

查看 dbus-glib 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:dbus-glib
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dbus-glib
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dbus-glib
```

  证据: MacPorts ports tree: devel/dbus-glib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add dbus-glib
```

  证据: Alpine Linux edge package indexes: dbus-glib from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libdbus-glib-1-2
```

  证据: Debian stable package indexes: libdbus-glib-1-2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install dbus-glib
```

  证据: Fedora Rawhide package metadata: dbus-glib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#dbus-glib
```

  证据: nixpkgs package indexes: pkgs/by-name/db/dbus-glib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S dbus-glib
```

  证据: Arch Linux sync databases: dbus-glib from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:dbus-glib
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dbus-glib>
- **版本:** 0.114
- **来源摘要:** GLib bindings for the D-Bus message bus system
- **主页:** <https://wiki.freedesktop.org/www/Software/DBusBindings/>
- **仓库:** <https://gitlab.freedesktop.org/dbus/dbus-glib>
- **上游文档:** <https://dbus.freedesktop.org/doc/dbus-glib>
- **许可证:** GPL-2.0-or-later AND (AFL-2.1 OR GPL-2.0-or-later)
- **源码归档:** <https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-0.114.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- dbus-binding-tool (cli)
- dbus-binding-tool (别名)

## 依赖

- dbus
- gettext
- glib

## 构建依赖

- pkgconf

## macOS 提供的库

- expat

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.114
- 本地数据: OK
- 上游仓库: https://wiki.freedesktop.org/www/Software/DBusBindings/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

dbus-glib is the older GLib binding layer for D-Bus, distributed with the dbus-binding-tool code generator and documented as the D-Bus GLib bindings reference manual.

### 项目历史

The package represents the early GLib-facing API for applications that wanted D-Bus integration through GObject-style types and proxies. Its reference manual documents both the library API and dbus-binding-tool, the C-language GLib binding generation utility.

### 采用历史

dbus-glib became legacy infrastructure after GLib 2.26 introduced GDBus in GIO. The official reference manual now warns that dbus-glib is deprecated for new code and says D-Bus maintainers recommend GDBus instead.

### 使用方式

Today the package is mainly installed for older GLib applications or source trees that still use dbus-glib APIs or generated bindings. New GLib code is expected to use GDBus, while dbus-glib remains useful when building historical desktop software.

### 为什么软件包爱好者会关心

It is a classic compatibility package: small, unglamorous, and still important because old desktop components may depend on the GLib binding even though the modern stack has moved on.

### 时间线

- 0.104: Official reference manual documents the dbus-glib API and dbus-binding-tool.
- GLib 2.26: GDBus becomes part of GLib's GIO library and supersedes dbus-glib for new GLib applications.

### Related projects

- Related D-Bus GLib-era and successor projects include D-Bus, libdbus, GDBus, QtDBus, sd-bus, and the wider set of D-Bus language bindings listed by freedesktop.org.

### 来源

- <https://dbus.freedesktop.org/doc/dbus-glib/>
- <https://www.freedesktop.org/wiki/Software/DBusBindings/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dbus-glib
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Debian apt - libdbus-glib-1-2 - 0.114-1: normalized package name match | Debian stable package indexes: libdbus-glib-1-2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | deprecated library for D-Bus IPC | https://www.freedesktop.org/wiki/Software/DBusBindings
- Debian apt - libdbus-glib-1-dev - 0.114-1: normalized package name match | Debian stable package indexes: libdbus-glib-1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | deprecated library for D-Bus IPC (development files) | https://www.freedesktop.org/wiki/Software/DBusBindings
- Debian apt - libdbus-glib-1-dev-bin - 0.114-1: normalized package name match | Debian stable package indexes: libdbus-glib-1-dev-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | deprecated library for D-Bus IPC (development tools) | https://www.freedesktop.org/wiki/Software/DBusBindings
- Debian apt - libdbus-glib-1-doc - 0.114-1: normalized package name match | Debian stable package indexes: libdbus-glib-1-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | deprecated library for D-Bus IPC (API documentation) | https://www.freedesktop.org/wiki/Software/DBusBindings
- Nix - dbus-glib: normalized package name match | nixpkgs package indexes: pkgs/by-name/db/dbus-glib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libdbus-glib-1-2 - 0.112-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libdbus-glib-1-2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | deprecated library for D-Bus IPC | https://www.freedesktop.org/wiki/Software/DBusBindings
- Ubuntu apt - libdbus-glib-1-dev - 0.112-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libdbus-glib-1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | deprecated library for D-Bus IPC (development files) | https://www.freedesktop.org/wiki/Software/DBusBindings
- Ubuntu apt - libdbus-glib-1-dev-bin - 0.112-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libdbus-glib-1-dev-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | deprecated library for D-Bus IPC (development tools) | https://www.freedesktop.org/wiki/Software/DBusBindings
- Ubuntu apt - libdbus-glib-1-doc - 0.112-3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libdbus-glib-1-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | deprecated library for D-Bus IPC (API documentation) | https://www.freedesktop.org/wiki/Software/DBusBindings
- apk - dbus-glib - 0.114-r0: normalized package name match | Alpine Linux edge package indexes: dbus-glib from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GLib bindings for DBUS | https://www.freedesktop.org/wiki/Software/DBusBindings
- apk - dbus-glib-dev - 0.114-r0: normalized package name match | Alpine Linux edge package indexes: dbus-glib-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GLib bindings for DBUS (development files) | https://www.freedesktop.org/wiki/Software/DBusBindings
- apk - dbus-glib-doc - 0.114-r0: normalized package name match | Alpine Linux edge package indexes: dbus-glib-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GLib bindings for DBUS (documentation) | https://www.freedesktop.org/wiki/Software/DBusBindings
- dnf - dbus-glib - 0.112-13.fc44: normalized package name match | Fedora Rawhide package metadata: dbus-glib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | GLib bindings for D-Bus | https://www.freedesktop.org/software/dbus/
- dnf - dbus-glib-devel - 0.112-13.fc44: normalized package name match | Fedora Rawhide package metadata: dbus-glib-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Libraries and headers for the D-Bus GLib bindings | https://www.freedesktop.org/software/dbus/
- pacman - dbus-glib - 0.114-1: normalized package name match | Arch Linux sync databases: dbus-glib from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | GLib bindings for D-Bus (deprecated) | https://www.freedesktop.org/wiki/Software/dbus/
- MacPorts - dbus-glib: normalized package name match | MacPorts ports tree: devel/dbus-glib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Documentation packages](https://www.automicvault.com/zh-hans/pkg/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [dbus](https://www.automicvault.com/zh-hans/pkg/brew/dbus/) - Runtime dependency declared by Homebrew.
- [gettext](https://www.automicvault.com/zh-hans/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/zh-hans/pkg/brew/glib/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [augeas](https://www.automicvault.com/zh-hans/pkg/brew/augeas/) - Shares av.db curated category or tags: cli, library, system.
- [cahute](https://www.automicvault.com/zh-hans/pkg/brew/cahute/) - Shares av.db curated category or tags: cli, library, system.
- [chmlib](https://www.automicvault.com/zh-hans/pkg/brew/chmlib/) - Shares av.db curated category or tags: cli, library, system.
- [cpu_features](https://www.automicvault.com/zh-hans/pkg/brew/cpu-features/) - Shares av.db curated category or tags: cli, library, system.
- [cpuid](https://www.automicvault.com/zh-hans/pkg/brew/cpuid/) - Shares av.db curated category or tags: cli, library, system.
- [hivex](https://www.automicvault.com/zh-hans/pkg/brew/hivex/) - Shares av.db curated category or tags: cli, library, system.
- [hwloc](https://www.automicvault.com/zh-hans/pkg/brew/hwloc/) - Shares av.db curated category or tags: cli, library, system.
- [desktop-file-utils](https://www.automicvault.com/zh-hans/pkg/brew/desktop-file-utils/) - Local package facts share a topical domain. Shared terms: cli, gettext, glib, system.
- [shared-mime-info](https://www.automicvault.com/zh-hans/pkg/brew/shared-mime-info/) - Local package facts share a topical domain. Shared terms: cli, glib, system.

## Combined YAML source

View the package source record on GitHub. [combined/dbus-glib.yml](https://github.com/automic-vault/db/blob/main/combined/dbus-glib.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
