# 使用 Homebrew, apk, dnf, MacPorts, Nix, zypper 安装 xrdb

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

## 安装

```sh
sudo av install brew:xrdb
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xrdb
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xrdb
```

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

### Linux

- apk (92%):

```sh
sudo apk add xrdb
```

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

- dnf (92%):

```sh
sudo dnf install xrdb
```

  证据: Fedora Rawhide package metadata: xrdb 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#xrdb
```

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

- zypper (92%):

```sh
sudo zypper install xrdb
```

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

## 软件包事实

- **软件包键:** brew:xrdb
- **软件包管理器:** Homebrew
- **版本:** 1.2.3
- **来源摘要:** X resource database utility
- **主页:** <https://gitlab.freedesktop.org/xorg/app/xrdb>
- **最后更新:** 2026-07-10T03:18:27Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- xrdb (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

xrdb is the small X.Org utility that loads, queries, merges, and edits the X server resource database. Its importance is historical as much as practical: it is the command that made per-user X resources such as colors, fonts, and application defaults available through X server properties rather than only through local dotfiles.

### 项目历史

The xrdb manual carries Digital Equipment Corporation and Open Group copyright dates from the 1990s and identifies Bob Scheifler and Phil Karlton as authors, rewritten from Jim Gettys's original. That lineage places xrdb in the classic MIT X / X11 tooling family, before the program was maintained as part of the modular X.Org application set.

The tool's design follows the X resource system: resources can be stored in RESOURCE_MANAGER on screen 0 and SCREEN_RESOURCES on individual screens. The X(7) manual describes xrdb as the program used by startup systems such as xdm and xinit to put global and per-screen resources into those properties.

### 采用历史

xrdb became a normal part of X session startup because many X Toolkit and Xlib-era applications read resources from the server. It is a quiet dependency of the .Xresources/.Xdefaults culture: users could keep one resource file, merge it at login, and have X clients pick up consistent defaults across hosts and screens.

Its adoption persisted through packaging because the resource database remains relevant for traditional X clients, terminal emulators, lightweight window-manager sessions, remote X workflows, and compatibility setups even as many desktop applications moved to toolkit-specific configuration systems.

### 使用方式

Typical usage is `xrdb -merge ~/.Xresources` from an X startup file, followed by `xrdb -query` to inspect the server-side database. Users also use `-load`, `-override`, `-remove`, and `-edit` when replacing or round-tripping resource settings.

For package users, xrdb is most visible when installing or configuring xterm, bitmap-era X applications, old app-defaults packages, or minimalist desktop sessions where the user wants font, color, cursor, and widget defaults controlled by X resources.

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

xrdb is a classic example of a tiny package with outsized historical surface area: it is not a daemon or library, but it is the bridge between a user's resource files and the X server state that clients consult.

It matters in package catalogs because it explains why X11 setups still ship separate utilities for session glue. Without xrdb, many old-but-still-packaged X applications lose the shared configuration path their manuals assume.

### 时间线

- 1991: xrdb manual copyright includes Digital Equipment Corporation, reflecting early X11 resource-database tooling.
- 1994-1998: Open Group copyright updates appear in the manual source.
- 2001: X.Org/XFree86 manual-source revision history records xrdb in the X11 utility tree.
- 2000s: xrdb continues as a modular X.Org application package used by display-manager and xinit-style startup flows.
- 2025: The upstream manpage remains maintained in the X.Org xrdb repository.

### Related projects

- Xlib Resource Manager and X Toolkit Intrinsics are the resource systems xrdb feeds.
- xinit, xdm, and display managers commonly invoke xrdb during X session startup.
- xterm and other X Toolkit clients are typical consumers of RESOURCE_MANAGER settings.
- appres and listres are companion tools for inspecting application resources.

### 来源

- <https://gitlab.freedesktop.org/xorg/app/xrdb/-/raw/master/man/xrdb.man>
- <https://www.x.org/releases/X11R7.5/doc/man/man1/xrdb.1.html>
- <https://xorg.freedesktop.org/archive/X11R7.5/doc/man/man7/X.7.html>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Nix - xrdb: normalized package name match | nixpkgs package indexes: pkgs/by-name/xr/xrdb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - xrdb - 1.2.2-r0: normalized package name match | Alpine Linux edge package indexes: xrdb from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | X server resource database utility | https://xorg.freedesktop.org/
- apk - xrdb-doc - 1.2.2-r0: normalized package name match | Alpine Linux edge package indexes: xrdb-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | X server resource database utility (documentation) | https://xorg.freedesktop.org/
- dnf - xrdb - 1.2.3-3.fc45: normalized package name match | Fedora Rawhide package metadata: xrdb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | X server resource database utility | https://www.x.org
- zypper - xrdb - 1.2.3-1.2: normalized package name match | openSUSE Tumbleweed package metadata: xrdb from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | X server resource database utility | https://xorg.freedesktop.org/
- MacPorts - xrdb: normalized package name match | MacPorts ports tree: x11/xrdb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
