# 使用 Homebrew, MacPorts, Nix, pacman, scoop 安装 diffnav

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

## 安装

```sh
sudo av install brew:diffnav
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install diffnav
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install diffnav
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#diffnav
```

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

- pacman (92%):

```sh
sudo pacman -S diffnav
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/diffnav
```

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

## 软件包事实

- **软件包键:** brew:diffnav
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/diffnav>
- **版本:** 0.12.0
- **来源摘要:** Git diff pager based on delta but with a file tree
- **主页:** <https://github.com/dlvhdr/diffnav>
- **仓库:** <https://github.com/dlvhdr/diffnav>
- **许可证:** MIT
- **源码归档:** <https://github.com/dlvhdr/diffnav/archive/refs/tags/v0.12.0.tar.gz>
- **最后更新:** 2026-07-25T14:21:57-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- diffnav (cli)
- diffnav (别名)

## 依赖

- git-delta

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

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

diffnav is a Git diff pager that combines delta-style diff rendering with a file-tree navigation pane. It is a newer terminal UI tool aimed at making large diffs easier to browse.

### 项目历史

The diffnav repository was created in 2024 and describes the tool as a Git diff pager based on delta with a GitHub-like file tree. Its README documents side-by-side and unified views, watch mode, file-tree controls, and configuration through YAML.

The release feed shows rapid early iteration through 2026, with versions from the 0.6.0 through 0.11.0 series published in the first quarter of that year.

### 采用历史

Because diffnav is young, its adoption history is still mostly upstream-led: the README documents installation through Homebrew from the author's tap or building with Go, plus usage as a global Git diff pager. The package-manager interest is in bringing a newer TUI diff-navigation workflow to standard install channels.

### 使用方式

Users pipe git diff or gh pr diff output into diffnav, or configure Git with pager.diff diffnav. The tool adds keyboard navigation, file-tree toggling, side-by-side or unified rendering, and watch mode for refreshing a diff command.

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

diffnav matters to package nerds as part of the modern wave of Go-based terminal UIs: a single installable binary, YAML config, Git integration, and explicit dependence on established projects such as delta and Bubble Tea.

### 时间线

- 2024: The dlvhdr/diffnav GitHub repository is created.
- 2026: Version 0.6.0 is released.
- 2026: Version 0.11.0 is released.

### Related projects

- delta, Bubble Tea, Git, gh, and gh-dash are the closest projects named or implied by upstream documentation.

### 来源

- <https://github.com/dlvhdr/diffnav>
- <https://api.github.com/repos/dlvhdr/diffnav>
- <https://raw.githubusercontent.com/dlvhdr/diffnav/main/README.md>
- <https://api.github.com/repos/dlvhdr/diffnav/releases>


## 安全说明

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:** diffnav
- **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 - diffnav: normalized package name match | nixpkgs package indexes: pkgs/by-name/di/diffnav/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - diffnav - 0.11.0-1: normalized package name match | Arch Linux sync databases: diffnav from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | git diff pager based on delta but with a file tree, à la GitHub | https://github.com/dlvhdr/diffnav
- MacPorts - diffnav: normalized package name match | MacPorts ports tree: textproc/diffnav/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/diffnav: normalized package name match | Scoop official bucket manifest trees: bucket/diffnav.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.
- [git-delta](https://pkg.so/zh-hans/brew/git-delta/) - Runtime dependency declared by Homebrew.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [diff-so-fancy](https://pkg.so/zh-hans/brew/diff-so-fancy/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git, pager.
- [difftastic](https://pkg.so/zh-hans/brew/difftastic/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git.
- [serie](https://pkg.so/zh-hans/brew/serie/) - Shares pkgdb curated category or tags: cli, developer-tools, git, tui, version-control.
- [difi](https://pkg.so/zh-hans/brew/difi/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git.
- [diffr](https://pkg.so/zh-hans/brew/diffr/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git.
- [libgit2](https://pkg.so/zh-hans/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [lazygit](https://pkg.so/zh-hans/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [diff-so-fancy](https://pkg.so/zh-hans/npm/diff-so-fancy/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, diff.
- [commitizen](https://pkg.so/zh-hans/npm/commitizen/) - Local package facts share a topical domain. Shared terms: but, cli, control, developer, developer-tools.

## Combined YAML source

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


## 来源

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