# 使用 Homebrew, MacPorts, Nix 安装 ratchet

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

## 安装

```sh
sudo av install brew:ratchet
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ratchet
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ratchet
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ratchet
```

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

## 软件包事实

- **软件包键:** brew:ratchet
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ratchet>
- **版本:** 0.12.0
- **来源摘要:** Tool for securing CI/CD workflows with version pinning
- **主页:** <https://github.com/sethvargo/ratchet>
- **仓库:** <https://github.com/sethvargo/ratchet>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/sethvargo/ratchet/archive/refs/tags/v0.12.0.tar.gz>
- **最后更新:** 2026-07-18T04:19:21Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ratchet (cli)
- ratchet (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.12.0
- 管理器更新时间: 2026-07-18
- 本地数据: OK
- 上游仓库: https://github.com/sethvargo/ratchet
- 检测到的最新版本: v0.12.0 (当前)

## 安全说明

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:** ratchet
- **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 - ratchet: normalized package name match | nixpkgs package indexes: pkgs/by-name/ra/ratchet/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - ratchet: normalized package name match | MacPorts ports tree: devel/ratchet/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [osv-scanner](https://pkg.so/zh-hans/brew/osv-scanner/) - Shares pkgdb curated category or tags: cli, security, supply-chain.
- [npq](https://pkg.so/zh-hans/brew/npq/) - Shares pkgdb curated category or tags: cli, security, supply-chain.
- [pip-audit](https://pkg.so/zh-hans/brew/pip-audit/) - Shares pkgdb curated category or tags: cli, security, supply-chain.
- [scorecard](https://pkg.so/zh-hans/brew/scorecard/) - Shares pkgdb curated category or tags: cli, security, supply-chain.
- [ghalint](https://pkg.so/zh-hans/brew/ghalint/) - Shares pkgdb curated category or tags: ci-cd, cli, security.
- [opensca-cli](https://pkg.so/zh-hans/brew/opensca-cli/) - Shares pkgdb curated category or tags: cli, security, supply-chain.
- [parlay](https://pkg.so/zh-hans/brew/parlay/) - Shares pkgdb curated category or tags: cli, security, supply-chain.
- [raven](https://pkg.so/zh-hans/brew/raven/) - Shares pkgdb curated category or tags: ci-cd, cli, security.
- [frizbee](https://pkg.so/zh-hans/brew/frizbee/) - Security-sensitive metadata or terminology overlaps. Shared terms: chain, cli, pinning, security, supply.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
