# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 1.16.2
- **来源摘要:** Message bus system, providing inter-application communication
- **主页:** <https://wiki.freedesktop.org/www/Software/dbus>
- **最后更新:** 2026-07-29T17:23:24+01:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.16.2
## 项目历史与用法

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
## 其他软件包管理器记录

- 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/


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
