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

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

## 安装

```sh
sudo av install brew:xauth
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xauth
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xauth
```

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

### Linux

- apk (92%):

```sh
sudo apk add xauth
```

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

- Debian apt (92%):

```sh
sudo apt install xauth
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#xauth
```

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

- zypper (92%):

```sh
sudo zypper install xauth
```

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

- dnf (92%):

```sh
sudo dnf install xorg-x11-xauth
```

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

## 软件包事实

- **软件包键:** brew:xauth
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/xauth>
- **版本:** 1.1.5
- **来源摘要:** X.Org Applications: xauth
- **主页:** <https://www.x.org/>
- **上游文档:** <https://www.x.org/>
- **许可证:** MIT-open-group
- **源码归档:** <https://www.x.org/pub/individual/app/xauth-1.1.5.tar.xz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- xauth (cli)
- xauth (别名)

## 依赖

- libx11
- libxau
- libxext
- libxmu

## 构建依赖

- pkgconf
- util-macros

## 安装行为

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

## 版本和新鲜度

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

xauth is the X.Org X authority file utility. It edits and displays the authorization records used when X clients connect to an X server, especially records stored in the user's X authority file.

### 项目历史

The xauth manual credits Jim Fulton of the MIT X Consortium as author, placing the utility in the long-running X11 security and display-access toolchain. The current upstream project is maintained as an X.Org application under freedesktop.org, where the GitLab project describes it as the 'X authority file utility.'

xauth was carried into the modular X.Org application set. X.Org's public release pages describe the post-X11R7.7 model in which individual modules are released independently, and the xauth repository follows that model with standalone tags such as xauth-1.0.3 in 2008 and later 1.1.x releases.

### 采用历史

xauth became infrastructure rather than an end-user application: display managers, startx workflows, remote shells, and administrators use authority records so X clients can prove they are allowed to connect. Its persistence across X.Org releases, Unix distributions, and macOS X11 environments follows from that role.

The GitLab project shows the repository under the xorg/app namespace, and the mirrored cgit page lists a long X.Org history, older XFree86-era tags, and recent xauth release tags through xauth-1.1.5 in December 2025.

### 使用方式

The manual describes xauth commands such as add, generate, extract, merge, list, and remove. A typical remote workflow is to extract the record for the current DISPLAY and merge it on another host, as in the manual's ssh pipeline example.

xauth normally uses the file named by XAUTHORITY, falling back to $HOME/.Xauthority. It does not usually create the first authority entry itself; the program that starts the X server, such as xdm or startx, usually does that.

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

For package maintainers and Unix users, xauth is the tiny command that makes X11 forwarding and cross-user X sessions understandable and scriptable. It is one of those small X.Org packages whose value is disproportionate to its size because many remote-GUI workflows fail without a correct authority file.

### 时间线

- MIT X Consortium era: xauth is authored as the X authority file utility by Jim Fulton.
- 2008: xauth 1.0.3 is announced on xorg-announce as an individual X.Org app release.
- 2012: X11R7.7 is released; X.Org later continues mostly with independent module releases.
- 2018: The freedesktop.org GitLab project page records creation of the xorg/app/xauth project.
- 2025: The cgit mirror lists xauth-1.1.4 and xauth-1.1.5 release tags.

### Related projects

- The xauth manual points to X(7), Xsecurity(7), xhost(1), Xserver(1), xdm(1), startx(1), and Xau(3). In practice, xauth sits beside these X11 access-control and session-startup tools.

### 来源

- <https://cgit.freedesktop.org/xorg/app/xauth>
- <https://gitlab.freedesktop.org/xorg/app/xauth>
- <https://lists.freedesktop.org/archives/xorg-announce/2008-March/000468.html>
- <https://www.x.org/archive/X11R7.5/doc/man/man1/xauth.1.html>
- <https://www.x.org/wiki/>
- <https://www.x.org/wiki/Releases/7.7/>


## 安全说明

narrow executable package without higher-risk signals.

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


## 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.


## Credential files

- Unix: $XAUTHORITY, ~/.Xauthority
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** xauth
- **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 - xauth - 1:1.1.2-1.1: normalized package name match | Debian stable package indexes: xauth from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | X authentication utility
- Nix - xauth: normalized package name match | nixpkgs package indexes: pkgs/by-name/xa/xauth/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - xauth - 1:1.1.2-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: xauth from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | X authentication utility
- apk - xauth - 1.1.5-r0: normalized package name match | Alpine Linux edge package indexes: xauth from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | X.Org authorization settings program | https://xorg.freedesktop.org/
- apk - xauth-doc - 1.1.5-r0: normalized package name match | Alpine Linux edge package indexes: xauth-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | X.Org authorization settings program (documentation) | https://xorg.freedesktop.org/
- dnf - xorg-x11-xauth - 1.1.5-6.fc45: normalized package name match | Fedora Rawhide package metadata: xorg-x11-xauth from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | X.Org X11 X authority utilities | https://www.x.org
- zypper - xauth - 1.1.5-1.5: normalized package name match | openSUSE Tumbleweed package metadata: xauth from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Utility to edit and display the X authorization information | https://xorg.freedesktop.org/
- MacPorts - xauth: normalized package name match | MacPorts ports tree: x11/xauth/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [xorg-server](https://pkg.so/zh-hans/brew/xorg-server/) - Popular package that depends on this formula.
- [xinit](https://pkg.so/zh-hans/brew/xinit/) - Popular package that depends on this formula.
- [xinput](https://pkg.so/zh-hans/brew/xinput/) - Shares pkgdb curated category or tags: cli, system, x11, xorg.
- [xkbcomp](https://pkg.so/zh-hans/brew/xkbcomp/) - Shares pkgdb curated category or tags: cli, system, x11, xorg.
- [libxcvt](https://pkg.so/zh-hans/brew/libxcvt/) - Shares pkgdb curated category or tags: cli, system, x11, xorg.
- [libxpm](https://pkg.so/zh-hans/brew/libxpm/) - Shares pkgdb curated category or tags: cli, system, x11, xorg.
- [xeyes](https://pkg.so/zh-hans/brew/xeyes/) - Shares pkgdb curated category or tags: cli, system, x11, xorg.
- [xrdb](https://pkg.so/zh-hans/brew/xrdb/) - Shares pkgdb curated category or tags: cli, system, x11, xorg.
- [xdpyinfo](https://pkg.so/zh-hans/brew/xdpyinfo/) - Local package facts share a topical domain. Shared terms: cli, libx11, libxext, org, system.

## Combined YAML source

View the package source record on GitHub. [combined/xauth.yml](https://github.com/mxcl/pkgdb/blob/main/combined/xauth.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
