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

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dbus
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dbus
```

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

### Linux

- apk (92%):

```sh
sudo apk add dbus
```

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

- Debian apt (92%):

```sh
sudo apt install dbus
```

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

- dnf (92%):

```sh
sudo dnf install dbus
```

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

- Nix (92%):

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

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

- pacman (92%):

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

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

- zypper (92%):

```sh
sudo zypper install dbus-1-daemon
```

  证据: openSUSE Tumbleweed package metadata: dbus-1-daemon from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:dbus
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dbus>
- **版本:** 1.16.2
- **来源摘要:** Message bus system, providing inter-application communication
- **主页:** <https://wiki.freedesktop.org/www/Software/dbus>
- **上游文档:** <https://wiki.freedesktop.org/www/Software/dbus>
- **许可证:** AFL-2.1 OR GPL-2.0-or-later
- **源码归档:** <https://dbus.freedesktop.org/releases/dbus/dbus-1.16.2.tar.xz>
- **最后更新:** 2026-07-29T17:23:24+01:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dbus-cleanup-sockets (cli)
- dbus-daemon (cli)
- dbus-launch (cli)
- dbus-monitor (cli)
- dbus-run-session (cli)
- dbus-send (cli)
- dbus-test-tool (cli)
- dbus-update-activation-environment (cli)
- dbus-uuidgen (cli)
- dbus-cleanup-sockets (别名)
- dbus-daemon (别名)
- dbus-launch (别名)
- dbus-monitor (别名)
- dbus-run-session (别名)
- dbus-send (别名)
- dbus-test-tool (别名)
- dbus-update-activation-environment (别名)
- dbus-uuidgen (别名)

## 构建依赖

- docbook
- docbook-xsl
- meson
- ninja
- pkgconf
- xmlto

## macOS 提供的库

- expat

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- 注意事项: To start the session bus now and at login: brew services start dbus To start the system bus now and on boot, install and activate the included daemon: sudo cp -f $(brew --prefix dbus)/org.freedesktop.dbus-system.plist /Library/LaunchDaemons sudo launchctl bootstrap system /Library/LaunchDaemons/org.freedesktop.dbus-system.plist If the daemon is already installed and running, restart it: sudo launchctl kickstart -k system/org.freedesktop.dbus-system
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.16.2
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://wiki.freedesktop.org/www/Software/dbus
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

D-Bus is the freedesktop.org message bus system and reference implementation for low-overhead local IPC, providing both a protocol and the dbus-daemon used by Unix desktop and system services.

### 项目历史

The D-Bus specification credits authors from Red Hat, CodeFactory, Imendio, Collabora, and others, and its first released document was revision 0.8 in September 2003. The protocol was declared frozen for compatible extension in November 2006, making later changes conservative and versioned.

### 采用历史

freedesktop.org describes dbus as the reference implementation and says released versions are available in all major Linux distributions. The project page also notes that D-Bus was heavily tested in real-world use over several years before being treated as set in stone.

### 使用方式

D-Bus supplies a system bus for events such as hardware or printer changes and a per-login-session bus for desktop IPC. The package also ships tools such as dbus-daemon, dbus-send, dbus-monitor, dbus-run-session, and dbus-uuidgen for debugging and service integration.

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

As a package, dbus sits near the base of the modern Linux desktop graph: many GUI, service, policy, and session components do not expose D-Bus directly to users, but they rely on its daemon, activation files, bus names, and language bindings.

### 时间线

- 2003: D-Bus specification revision 0.8 is the first released document.
- 2006: D-Bus protocol is frozen for compatible extensions.
- 2024: Specification revision 0.43 documents more modern interfaces and service-loading guidance.
- 2026: freedesktop.org lists dbus 1.16.x as the stable branch and 1.14.x as a legacy branch supported for security fixes until mid-2026.

### Related projects

- Related projects include libdbus, dbus-daemon, dbus-glib, GDBus, QtDBus, sd-bus, and language bindings for Python, Ruby, Go, Rust, and other ecosystems.

### 来源

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


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /usr/share/dbus-1/system.conf, /usr/share/dbus-1/session.conf, /etc/dbus-1/system.d, /etc/dbus-1/session.d
## 源数据库详情

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

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

- Debian apt - dbus - 1.16.2-2: normalized package name match | Debian stable package indexes: dbus from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple interprocess messaging system (system message bus) | https://dbus.freedesktop.org/
- Debian apt - dbus-1-doc - 1.16.2-2: normalized package name match | Debian stable package indexes: dbus-1-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple interprocess messaging system (documentation) | https://dbus.freedesktop.org/
- Debian apt - dbus-bin - 1.16.2-2: normalized package name match | Debian stable package indexes: dbus-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple interprocess messaging system (command line utilities) | https://dbus.freedesktop.org/
- Debian apt - dbus-daemon - 1.16.2-2: normalized package name match | Debian stable package indexes: dbus-daemon from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple interprocess messaging system (reference message bus) | https://dbus.freedesktop.org/
- Debian apt - dbus-session-bus-common - 1.16.2-2: normalized package name match | Debian stable package indexes: dbus-session-bus-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple interprocess messaging system (session bus configuration) | https://dbus.freedesktop.org/
- Debian apt - dbus-system-bus-common - 1.16.2-2: normalized package name match | Debian stable package indexes: dbus-system-bus-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple interprocess messaging system (system bus configuration) | https://dbus.freedesktop.org/
- Debian apt - dbus-tests - 1.16.2-2: normalized package name match | Debian stable package indexes: dbus-tests from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple interprocess messaging system (test infrastructure) | https://dbus.freedesktop.org/
- Debian apt - dbus-user-session - 1.16.2-2: normalized package name match | Debian stable package indexes: dbus-user-session from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple interprocess messaging system (systemd --user integration) | https://dbus.freedesktop.org/
- Debian apt - dbus-x11 - 1.16.2-2: normalized package name match | Debian stable package indexes: dbus-x11 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple interprocess messaging system (X11 deps) | https://dbus.freedesktop.org/
- Debian apt - libdbus-1-3 - 1.16.2-2: normalized package name match | Debian stable package indexes: libdbus-1-3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple interprocess messaging system (library) | https://dbus.freedesktop.org/
- Debian apt - libdbus-1-dev - 1.16.2-2: normalized package name match | Debian stable package indexes: libdbus-1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple interprocess messaging system (development headers) | https://dbus.freedesktop.org/
- Nix - dbus: normalized package name match | nixpkgs package indexes: pkgs/by-name/db/dbus/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dbus - 1.14.10-4ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: dbus from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | simple interprocess messaging system (system message bus) | https://dbus.freedesktop.org/
- Ubuntu apt - dbus-1-doc - 1.14.10-4ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: dbus-1-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | simple interprocess messaging system (documentation) | https://dbus.freedesktop.org/
- Ubuntu apt - dbus-bin - 1.14.10-4ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: dbus-bin from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | simple interprocess messaging system (command line utilities) | https://dbus.freedesktop.org/
- Ubuntu apt - dbus-daemon - 1.14.10-4ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: dbus-daemon from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | simple interprocess messaging system (reference message bus) | https://dbus.freedesktop.org/


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Documentation packages](https://pkg.so/zh-hans/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ninja](https://pkg.so/zh-hans/brew/ninja/) - Build dependency declared by Homebrew.
- [meson](https://pkg.so/zh-hans/brew/meson/) - Build dependency declared by Homebrew.
- [docbook](https://pkg.so/zh-hans/brew/docbook/) - Build dependency declared by Homebrew.
- [qtbase](https://pkg.so/zh-hans/brew/qtbase/) - Popular package that depends on this formula.
- [avahi](https://pkg.so/zh-hans/brew/avahi/) - Popular package that depends on this formula.
- [pipewire](https://pkg.so/zh-hans/brew/pipewire/) - Popular package that depends on this formula.
- [bluez](https://pkg.so/zh-hans/brew/bluez/) - Popular package that depends on this formula.
- [onedrive-cli](https://pkg.so/zh-hans/brew/onedrive-cli/) - Popular package that depends on this formula.
- [efl](https://pkg.so/zh-hans/brew/efl/) - Popular package that depends on this formula.
- [gtk-gnutella](https://pkg.so/zh-hans/brew/gtk-gnutella/) - Popular package that depends on this formula.
- [dbus-glib](https://pkg.so/zh-hans/brew/dbus-glib/) - Shares pkgdb curated category or tags: cli, ipc, system.
- [cups](https://pkg.so/zh-hans/brew/cups/) - Shares pkgdb curated category or tags: cli, system, system-service.
- [sleepwatcher](https://pkg.so/zh-hans/brew/sleepwatcher/) - Shares pkgdb curated category or tags: cli, daemon, system.
- [supervisor](https://pkg.so/zh-hans/brew/supervisor/) - Shares pkgdb curated category or tags: cli, daemon, system.
- [nut](https://pkg.so/zh-hans/brew/nut/) - Shares pkgdb curated category or tags: cli, daemon, system.
- [openmotif](https://pkg.so/zh-hans/brew/openmotif/) - Shares pkgdb curated category or tags: cli, desktop, system.
- [terminator](https://pkg.so/zh-hans/brew/terminator/) - Shares pkgdb curated category or tags: cli, desktop, system.
- [syslog-ng](https://pkg.so/zh-hans/brew/syslog-ng/) - Shares pkgdb curated category or tags: cli, daemon, system.
- [desktop-file-utils](https://pkg.so/zh-hans/brew/desktop-file-utils/) - Local package facts share a topical domain. Shared terms: cli, desktop, system, update.
- [shared-mime-info](https://pkg.so/zh-hans/brew/shared-mime-info/) - Local package facts share a topical domain. Shared terms: cli, desktop, system, update.

## Combined YAML source

View the package source record on GitHub. [combined/dbus.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dbus.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
