# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:xauth
- **软件包管理器:** Homebrew
- **版本:** 1.1.5
- **来源摘要:** X.Org Applications: xauth
- **主页:** <https://www.x.org/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- xauth (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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


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