# 使用 Homebrew, MacPorts, Nix 安装 xxh

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

## 安装

```sh
sudo av install brew:xxh
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xxh
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xxh
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#xxh
```

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

## 软件包事实

- **软件包键:** brew:xxh
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/xxh>
- **版本:** 0.8.14
- **来源摘要:** Bring your favorite shell wherever you go through the ssh
- **主页:** <https://github.com/xxh/xxh>
- **仓库:** <https://github.com/xxh/xxh>
- **上游文档:** <https://github.com/xxh/xxh#readme>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://files.pythonhosted.org/packages/d6/ac/fb40368ff37fbdd00d041e241cc0d7a50cdac7bc6ae54dcb9f1349acdde6/xxh-xxh-0.8.14.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- xxh (cli)
- xxh.bash (cli)
- xxh.xsh (cli)
- xxh.zsh (cli)
- xxh (别名)
- xxh.bash (别名)
- xxh.xsh (别名)
- xxh.zsh (别名)

## 依赖

- libyaml
- python@3.14

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.8.14
- 本地数据: OK
- 上游仓库: https://github.com/xxh/xxh
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

xxh is a remote-shell portability tool for people who want their own shell, aliases, plugins, and terminal habits when connecting through SSH. Its niche is not replacing OpenSSH transport; it wraps the SSH workflow so a prepared, removable userland can be uploaded to a remote Linux host without root access or permanent system installation.

### 项目历史

The project grew out of a common dotfile and remote-login annoyance: a heavily customized local shell disappears when a user logs in to an unfamiliar server. The README frames xxh around that problem and around the goal of bringing shells such as xonsh, zsh, fish, bash, and osquery to remote hosts.

The design evolved around small, forkable shell and plugin packages. Instead of copying a user's private dotfiles wholesale, xxh encourages reusable shell entrypoints and prerun plugins, so a remote environment can be assembled locally, uploaded, used, and removed by deleting the remote .xxh directory.

### 采用历史

xxh adoption has been strongest in the remote-development and shell-customization niche rather than in base operating systems. Its README lists Python package installation, pipx, conda-forge, Homebrew, MacPorts, portable Linux archives, and AppImage as distribution paths, reflecting a tool aimed at users who move between many hosts and package ecosystems.

The surrounding plugin repositories are part of the adoption story: zsh and fish integrations, Oh My Zsh and Oh My Fish support, Powerlevel10k, starship, vim, zoxide, Docker, Python, and dotfiles plugins show the project being used as a portable terminal-environment framework rather than a single binary.

### 使用方式

In practice, users invoke xxh where they would normally invoke ssh, preserving ordinary SSH arguments while adding xxh-specific options with plus-prefixed flags. Common workflows include selecting a shell for a host, preinstalling plugins, forcing a remote reinstall, choosing the remote home/hermetic level, or using seamless mode from the local shell.

The package is useful when a developer has access to many Linux hosts but cannot install packages globally, wants a familiar shell on ephemeral machines, or needs a repeatable remote command environment without leaving long-lived files behind.

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

xxh is package-nerd interesting because it packages a personal environment rather than just a program. It sits at the intersection of SSH, dotfiles, shell frameworks, portable binaries, and plugin packaging, making explicit the messy work many developers otherwise solve with ad hoc scp, curl, and bootstrap scripts.

Its plus-option convention and forkable package model also show a pragmatic packaging lesson: when a wrapper must pass through the native tool's flags, namespacing the wrapper's own options keeps the command line usable.

### 时间线

- 2019: Public discussion and package pages show xxh being promoted as a way to bring zsh, Oh My Zsh, and other shells through SSH without root access on the host.
- 2020: Homebrew, MacPorts, conda-forge, pip, pipx, AppImage, and portable Linux archive installation paths are documented in the project README.
- 2020s: The shell and plugin ecosystem grows around xonsh, zsh, fish, bash, osquery, prerun plugins, and cookiecutter templates for new plugins.

### Related projects

- OpenSSH is the underlying transport and user-facing model that xxh wraps rather than replaces.
- xonsh, zsh, fish, bash, and osquery are supported shell entrypoints in the xxh ecosystem.
- Oh My Zsh, Oh My Fish, Powerlevel10k, starship, zoxide, vim, and Docker appear as examples of portable shell and prerun plugin targets.

### 来源

- <https://github.com/xxh/xxh>
- <https://pypi.org/project/xxh-xxh/0.7.3/>
- <https://www.reddit.com/r/zsh/comments/fiq9w2/bring_zsh_with_ohmyzsh_wherever_you_go_through/>


## 安全说明

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal


## 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: ~/.config/xxh/config.xxhc
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** xxh
- **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

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

- Nix - xxh: normalized package name match | nixpkgs package indexes: pkgs/by-name/xx/xxh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - xxh: normalized package name match | MacPorts ports tree: sysutils/xxh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [code-server](https://www.automicvault.com/zh-hans/pkg/brew/code-server/) - Shares av.db curated category or tags: cli, developer-tools, remote-development.
- [et](https://www.automicvault.com/zh-hans/pkg/brew/et/) - Shares av.db curated category or tags: cli, developer-tools, ssh, terminal.
- [oh-my-posh](https://www.automicvault.com/zh-hans/pkg/brew/oh-my-posh/) - Shares av.db curated category or tags: cli, developer-tools, shell, terminal.
- [shml](https://www.automicvault.com/zh-hans/pkg/brew/shml/) - Shares av.db curated category or tags: cli, developer-tools, shell, terminal.
- [sshs](https://www.automicvault.com/zh-hans/pkg/brew/sshs/) - Shares av.db curated category or tags: cli, developer-tools, ssh, terminal.
- [starship](https://www.automicvault.com/zh-hans/pkg/brew/starship/) - Shares av.db curated category or tags: cli, developer-tools, shell, terminal.
- [zplug](https://www.automicvault.com/zh-hans/pkg/brew/zplug/) - Shares av.db curated category or tags: cli, developer-tools, shell, terminal.
- [aha](https://www.automicvault.com/zh-hans/pkg/brew/aha/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [posting](https://www.automicvault.com/zh-hans/pkg/brew/posting/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, libyaml, python.
- [beautysh](https://www.automicvault.com/zh-hans/pkg/brew/beautysh/) - Both packages touch the same language runtime or ecosystem. Shared terms: bash, cli, developer, developer-tools, python.
- [gptline](https://www.automicvault.com/zh-hans/pkg/brew/gptline/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, libyaml, python.

## Combined YAML source

View the package source record on GitHub. [combined/xxh.yml](https://github.com/automic-vault/db/blob/main/combined/xxh.yml)


## 来源

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