# 使用 Homebrew, apt, MacPorts, Nix 安装 numdiff

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

## 安装

```sh
sudo av install brew:numdiff
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install numdiff
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install numdiff
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install numdiff
```

  证据: Debian stable package indexes: numdiff from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#numdiff
```

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

## 软件包事实

- **软件包键:** brew:numdiff
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/numdiff>
- **版本:** 5.9.0
- **来源摘要:** Putative files comparison tool
- **主页:** <https://www.nongnu.org/numdiff>
- **上游文档:** <https://www.nongnu.org/numdiff>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://download.savannah.gnu.org/releases/numdiff/numdiff-5.9.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ndselect (cli)
- numdiff (cli)
- ndselect (别名)
- numdiff (别名)

## 依赖

- gmp

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.9.0
- 本地数据: OK
- 上游仓库: https://www.nongnu.org/numdiff
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Numdiff is a small, long-lived NonGNU utility by Ivano Primi for comparing files that contain numeric fields. Its reason to exist is simple: ordinary `diff`, `cmp`, and `wdiff` do not know that two textual representations may be numerically equivalent, nor can they ignore numeric changes below a requested tolerance.

### 项目历史

The official manual for Numdiff 5.9 carries copyrights from 2005 through 2017 and documents a mature Unix-style C program built with the usual `configure`, `make`, and `make install` workflow. The 5.9 manual also notes that older 5.x releases accepted fewer options and that 4.0.0 and 3.x used a different output format, so the package has a real pre-5.x history even though public narrative sources are sparse.

### 采用历史

Numdiff has modest adoption: it is packaged by Homebrew, Debian/Ubuntu, MacPorts, Nix, and GNU Guix, but it is not a broad ecosystem cornerstone. Homebrew's formula page listed only 43 installs over 365 days on July 1, 2026, which fits the profile of a specialist testing/scientific utility that users reach for when normal diffs are too literal.

### 使用方式

The practical workflow is comparing generated numeric output line by line and field by field while setting absolute or relative tolerances and accepting equivalent numeric notation. Numdiff also ships `ndselect` for selecting lines and fields, and version 5.9 added a raw output format intended for machine parsing.

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

Numdiff is the classic package-manager long tail: tiny, stable, GPL-licensed, and exactly useful when validating numerical programs whose outputs vary by rounding, notation, platform, compiler, or BLAS implementation. It is most likely to appear in regression-test scripts, scientific-code QA, and packaging test fixtures.

### 时间线

- 2005-2017: Years covered by the official manual copyright range.
- 5.9: Adds compact raw output intended for parsing by other programs.

### Related projects

- GNU diffutils
- wdiff
- cmp

### 来源

- <https://formulae.brew.sh/formula/numdiff>
- <https://packages.guix.gnu.org/packages/numdiff/5.9.0/>
- <https://www.nongnu.org/numdiff/>
- <https://www.nongnu.org/numdiff/numdiff.html>


## 安全说明

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:** numdiff
- **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

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

- Debian apt - numdiff - 5.9.0-2: normalized package name match | Debian stable package indexes: numdiff from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Compare similar files with numeric fields | https://nongnu.org/numdiff/
- Nix - numdiff: normalized package name match | nixpkgs package indexes: pkgs/by-name/nu/numdiff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - numdiff - 5.9.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: numdiff from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Compare similar files with numeric fields | http://nongnu.org/numdiff/
- MacPorts - numdiff: normalized package name match | MacPorts ports tree: science/numdiff/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [diffoscope](https://pkg.so/zh-hans/brew/diffoscope/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, files.
- [difftastic](https://pkg.so/zh-hans/brew/difftastic/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [diffutils](https://pkg.so/zh-hans/brew/diffutils/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [diff-so-fancy](https://pkg.so/zh-hans/brew/diff-so-fancy/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [colordiff](https://pkg.so/zh-hans/brew/colordiff/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [dyff](https://pkg.so/zh-hans/brew/dyff/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [diffnav](https://pkg.so/zh-hans/brew/diffnav/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [difi](https://pkg.so/zh-hans/brew/difi/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [texi2html](https://pkg.so/zh-hans/brew/texi2html/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, files.

## Combined YAML source

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