# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, scoop 安装 navi

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

## 安装

```sh
sudo av install brew:navi
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install navi
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install navi
```

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

### Linux

- apk (92%):

```sh
sudo apk add navi
```

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

- dnf (92%):

```sh
sudo dnf install navi
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#navi
```

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

- pacman (92%):

```sh
sudo pacman -S navi
```

  证据: Arch Linux sync databases: navi from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/navi
```

  证据: Scoop official bucket manifest trees: bucket/navi.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:navi
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/navi>
- **版本:** 2.24.0
- **来源摘要:** Interactive cheatsheet tool for the command-line
- **主页:** <https://github.com/denisidoro/navi>
- **仓库:** <https://github.com/denisidoro/navi>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/denisidoro/navi/archive/refs/tags/v2.24.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- navi (cli)
- navi (别名)

## 依赖

- fzf

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.24.0
- 本地数据: OK
- 上游仓库: https://github.com/denisidoro/navi
- 检测到的最新版本: v2.24.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

navi is a Rust command-line cheatsheet browser that lets users search command snippets, fill arguments interactively, and execute the result. It sits between shell history, snippet managers, and TLDR-style examples.

### 项目历史

The GitHub repository was created on 2019-09-20. The README describes navi as an interactive cheatsheet tool for the command line and says it can be used as a command, shell widget, tmux widget, alias helper, or shell scripting tool.

The project grew around an ecosystem of cheatsheet repositories. The companion `denisidoro/cheats` repository was created on 2020-03-15 and its README says navi prompts first-time users to download `.cheat` files from it.

### 采用历史

navi has stronger adoption signals than most small terminal helpers in this batch: GitHub repository metadata consulted on 2026-07-01 showed more than 17,000 stars, and Homebrew analytics listed 4,169 installs over the preceding 365 days. It is packaged across several ecosystems, including Homebrew, Alpine, Fedora, MacPorts, Nix, Arch, and Scoop in the input package record.

### 使用方式

Users run `navi` to browse cheatsheets, bind it as a shell widget for editable command insertion, or use tmux integration. The docs describe manually adding cheatsheets to the platform cheats path, using cheatsheet repositories, and querying TLDR or cheat.sh content with `navi --tldr <query>` and `navi --cheatsh <query>`.

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

navi is notable because it packages personal operational knowledge as versionable text. For package maintainers and terminal-tool collectors, it is an example of a CLI whose value is partly the binary and partly the shared data format and repositories around it.

### 时间线

- 2019-09-20: GitHub repository created.
- 2020-03-15: `denisidoro/cheats` community cheatsheet repository created.
- 2022-04-05: navi reached a Hacker News discussion with 132 points, reflecting broader terminal-tool visibility.
- 2023-12-10: v2.23.0 released.
- 2025-01-29: v2.24.0 released.
- 2025-04-09: v2.25.0-beta1 prerelease published.

### Related projects

- fzf, skim, tldr pages, cheat.sh, cheat/cheat, shell widgets, and tmux integrations are the main adjacent tools and content sources.

### 来源

- <https://api.github.com/repos/denisidoro/cheats>
- <https://api.github.com/repos/denisidoro/navi>
- <https://formulae.brew.sh/formula/navi>
- <https://github.com/denisidoro/cheats>
- <https://github.com/denisidoro/navi>
- <https://github.com/denisidoro/navi/blob/master/docs/cheatsheet/README.md>
- <https://github.com/denisidoro/navi/releases>
- <https://news.ycombinator.com/item?id=30925843>


## 安全说明

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.


## Configuration files

- Unix: $NAVI_CONFIG, ~/.config/navi/config.yaml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** navi
- **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 - navi: normalized package name match | nixpkgs package indexes: pkgs/by-name/na/navi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - navi - 2.24.0-r0: normalized package name match | Alpine Linux edge package indexes: navi from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | An interactive cheatsheet tool for the command-line | https://github.com/denisidoro/navi
- apk - navi-bash-plugin - 2.24.0-r0: normalized package name match | Alpine Linux edge package indexes: navi-bash-plugin from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash plugin for navi (key bindings) | https://github.com/denisidoro/navi
- apk - navi-fish-plugin - 2.24.0-r0: normalized package name match | Alpine Linux edge package indexes: navi-fish-plugin from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish plugin for navi (key bindings) | https://github.com/denisidoro/navi
- apk - navi-zsh-plugin - 2.24.0-r0: normalized package name match | Alpine Linux edge package indexes: navi-zsh-plugin from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh plugin for navi (key bindings) | https://github.com/denisidoro/navi
- dnf - navi - 2.20.1-14.fc45: normalized package name match | Fedora Rawhide package metadata: navi from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Interactive cheatsheet tool for the command-line | https://crates.io/crates/navi
- pacman - navi - 2.24.0-1: normalized package name match | Arch Linux sync databases: navi from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An interactive cheatsheet tool for the command-line | https://github.com/denisidoro/navi
- MacPorts - navi: normalized package name match | MacPorts ports tree: sysutils/navi/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/navi: normalized package name match | Scoop official bucket manifest trees: bucket/navi.json from https://api.github.com/repos/ScoopInstaller/Main/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.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [fzf](https://pkg.so/zh-hans/brew/fzf/) - Runtime dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [privatebin-cli](https://pkg.so/zh-hans/brew/privatebin-cli/) - Shares pkgdb curated category or tags: cli, command-line, developer-tools, terminal.
- [moreutils](https://pkg.so/zh-hans/brew/moreutils/) - Shares pkgdb curated category or tags: cli, command-line, developer-tools.
- [herdr](https://pkg.so/zh-hans/brew/herdr/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [posting](https://pkg.so/zh-hans/brew/posting/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [icdiff](https://pkg.so/zh-hans/brew/icdiff/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [msedit](https://pkg.so/zh-hans/brew/msedit/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [nap](https://pkg.so/zh-hans/brew/nap/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [morse](https://pkg.so/zh-hans/brew/morse/) - Shares pkgdb curated category or tags: cli, command-line, developer-tools.
- [forgit](https://pkg.so/zh-hans/brew/forgit/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, fzf, interactive.
- [chars](https://pkg.so/zh-hans/brew/chars/) - Local package facts share a topical domain. Shared terms: cli, command-line, developer, developer-tools, line.

## Combined YAML source

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