# 使用 Homebrew, MacPorts, Nix 安装 hermit

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

## 安装

```sh
sudo av install brew:hermit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hermit
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hermit
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#hermit
```

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

## 软件包事实

- **软件包键:** brew:hermit
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/hermit>
- **版本:** 0.52.3
- **来源摘要:** Manages isolated, self-bootstrapping sets of tools in software projects
- **主页:** <https://cashapp.github.io/hermit>
- **仓库:** <https://github.com/cashapp/hermit>
- **上游文档:** <https://cashapp.github.io/hermit>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/cashapp/hermit/archive/refs/tags/v0.52.3.tar.gz>
- **最后更新:** 2026-06-16T08:40:33Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- hermit (cli)
- hermit (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- 注意事项: For shell integration hooks, add the following to your shell configuration: For bash, add the following command to your .bashrc: eval "$(test -x $(brew --prefix)/bin/hermit && $(brew --prefix)/bin/hermit shell-hooks --print --bash)" For zsh, add the following command to your .zshrc: eval "$(test -x $(brew --prefix)/bin/hermit && $(brew --prefix)/bin/hermit shell-hooks --print --zsh)"
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.52.3
- 管理器更新时间: 2026-06-16
- 本地数据: OK
- 上游仓库: https://github.com/cashapp/hermit
- 检测到的最新版本: v0.52.3 (当前)
## 项目历史与用法

Hermit is a project-local toolchain manager from Cash App. It installs development tools into isolated, self-bootstrapping environments so a repository, its contributors, and its CI can share the same command-line tooling without asking users to preconfigure a whole machine.

### 项目历史

The Hermit and hermit-packages repositories were created on May 20, 2021. The README describes the core mission as uniform tooling for Linux and Mac: self-contained tool sets that travel with a software project.

Hermit's design separates the environment manager from package manifests. The `cashapp/hermit-packages` repository contains HCL manifests that describe how to download, install, and map packages into an environment, while Hermit itself provides activation, package lookup, installation, updating, and shell integration.

The documentation presents Hermit as intentionally narrow. The FAQ says it manages development tools rather than libraries, avoids being a general-purpose package manager, and differs from Nix, Homebrew, Docker, Bazel, GoFish, and asdf by focusing on project-level, self-bootstrapping, binary-tool environments.

### 采用历史

Hermit's adoption path is strongest inside repositories and CI jobs that want reproducible developer tools without adopting a full operating-system package manager or build system. Its docs teach users to commit the generated `bin` directory artifacts such as `activate-hermit`, `hermit`, and `hermit.hcl` so a clone can bootstrap itself.

The presence of a separate manifest repository, a GitHub Action for activating Hermit, Renovate datasource support, and package-manager entries in Homebrew, MacPorts, and Nix reflects a small but durable ecosystem around project-local tool provisioning.

### 使用方式

A typical workflow starts with `hermit init` in a project, then `. ./bin/activate-hermit` to add the project's `bin` directory and managed environment variables to the shell. Users then install tools with commands such as `hermit install go-1.16.3` or `hermit install rust@nightly protoc`.

Hermit packages can be selected by exact version, channel, or preferred version. The management docs describe manifest sources, periodic syncs, `hermit search`, `hermit list`, `hermit info`, `hermit upgrade`, explicit downgrades with `hermit install`, and `hermit uninstall`.

Hermit's package definitions are HCL manifests commonly retrieved from Git repositories. The official packaging docs describe these manifests as the way packages define source archives, installation behavior, and binary mappings.

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

Hermit occupies a pragmatic middle ground between language-specific version managers and full system package managers. Package nerds care because it turns a repository into its own tool-distribution boundary, but does so by downloading relocatable binary tools instead of building a new universe from source.

Its comparison with asdf is especially revealing: asdf focuses on switching versions of languages and tools for a user, while Hermit focuses on making project tooling consistent and reproducible for teams and CI. That difference explains why Hermit manifests and activation scripts are part of the project workflow rather than only per-user setup.

### 时间线

- 2021-05-20: Hermit and hermit-packages repositories were created.
- 2021: Early documentation used Go 1.16.3 and Rust 1.51-era examples, matching Hermit's initial positioning as a project toolchain manager.
- 2026: The repository and package manifest collection remained active, with documentation covering package manifests, Renovate integration, and multiple shells.

### Related projects

- asdf is the closest version-manager comparison in the official FAQ, but Hermit emphasizes project-level binary tool environments rather than per-user language switching.
- Nix, Homebrew, Docker, Bazel, and GoFish are comparison points in the FAQ. Hermit deliberately avoids becoming a full OS package manager, build system, or container runtime.
- `cashapp/hermit-packages`, `cashapp/hermit-build`, and `cashapp/activate-hermit` are companion repositories for manifests, special build artifacts, and CI activation.

### 来源

- Hermit README for project mission and copyright date.
- Official get-started, package-management, and FAQ docs for workflow and scope boundaries.
- hermit-packages README for manifest repository role.


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** hermit
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Nix - hermit: normalized package name match | nixpkgs package indexes: pkgs/by-name/he/hermit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - hermit: normalized package name match | MacPorts ports tree: devel/hermit/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.
- [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.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [pyenv-virtualenv](https://www.automicvault.com/zh-hans/pkg/brew/pyenv-virtualenv/) - Shares av.db curated category or tags: cli, developer-tools, environment-management.
- [virtualenvwrapper](https://www.automicvault.com/zh-hans/pkg/brew/virtualenvwrapper/) - Shares av.db curated category or tags: cli, developer-tools, environment-management.
- [virtualfish](https://www.automicvault.com/zh-hans/pkg/brew/virtualfish/) - Shares av.db curated category or tags: cli, developer-tools, environment-management.
- [direnv](https://www.automicvault.com/zh-hans/pkg/brew/direnv/) - Shares av.db curated category or tags: cli, developer-tools, environment-management.
- [fades](https://www.automicvault.com/zh-hans/pkg/brew/fades/) - Shares av.db curated category or tags: cli, developer-tools, environment-management.
- [modules](https://www.automicvault.com/zh-hans/pkg/brew/modules/) - Shares av.db curated category or tags: cli, developer-tools, environment-management.
- [pyenv-pip-migrate](https://www.automicvault.com/zh-hans/pkg/brew/pyenv-pip-migrate/) - Shares av.db curated category or tags: cli, developer-tools, environment-management.
- [pyenv-virtualenvwrapper](https://www.automicvault.com/zh-hans/pkg/brew/pyenv-virtualenvwrapper/) - Shares av.db curated category or tags: cli, developer-tools, environment-management.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
