# 使用 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
- **版本:** 0.12.0
- **来源摘要:** Git diff pager based on delta but with a file tree
- **主页:** <https://github.com/dlvhdr/diffnav>
- **仓库:** <https://github.com/dlvhdr/diffnav>
- **最后更新:** 2026-07-25T14:21:57-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- diffnav (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
