# 使用 Homebrew, Nix, winget, apk, chocolatey, apt, dnf, MacPorts, pacman, zypper, scoop 安装 uutils-diffutils

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

## 安装

```sh
sudo av install brew:uutils-diffutils
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install uutils-diffutils
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install diffutils
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#uutils-diffutils
```

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

- apk (92%):

```sh
sudo apk add diffutils
```

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

- Debian apt (92%):

```sh
sudo apt install diffutils
```

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

- dnf (92%):

```sh
sudo dnf install diffutils
```

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

- pacman (92%):

```sh
sudo pacman -S diffutils
```

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

- zypper (92%):

```sh
sudo zypper install diffutils
```

  证据: openSUSE Tumbleweed package metadata: diffutils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id uutils.diffutils -e
```

  证据: Windows Package Manager source index: uutils.diffutils from https://cdn.winget.microsoft.com/cache/source.msix

- Chocolatey (92%):

```sh
choco install diffutils
```

  证据: Chocolatey community package catalog: diffutils from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','dell-omsa'

- Scoop (92%):

```sh
scoop install main/diffutils
```

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

## 软件包事实

- **软件包键:** brew:uutils-diffutils
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/uutils-diffutils>
- **版本:** 0.5.0
- **来源摘要:** Cross-platform Rust rewrite of the GNU diffutils
- **主页:** <https://uutils.github.io/diffutils/>
- **仓库:** <https://github.com/uutils/diffutils>
- **上游文档:** <https://github.com/uutils/diffutils>
- **许可证:** Apache-2.0 OR MIT
- **源码归档:** <https://github.com/uutils/diffutils/archive/refs/tags/v0.5.0.tar.gz>
- **已生成:** 2026-07-26T07:20:29+00:00

## 可执行文件

- diffutils (cli)
- udiffutils (cli)
- uu-cmp (cli)
- uu-diff (cli)
- uu-diffutils (cli)
- diffutils (别名)
- udiffutils (别名)
- uu-cmp (别名)
- uu-diff (别名)
- uu-diffutils (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- 注意事项: All commands have been installed with the prefix "uu-". If you need to use these commands with their normal names, you can add a "uubin" directory to your PATH from your bashrc like: PATH="$HOMEBREW_PREFIX/opt/uutils-diffutils/libexec/uubin:$PATH"
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-26
- 管理器版本: 0.5.0
- 本地数据: OK
- 上游仓库: https://github.com/uutils/diffutils
- 检测到的最新版本: v0.5.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

uutils-diffutils is the uutils Rust implementation of the GNU diffutils family: diff, cmp, diff3, and sdiff.

### 项目历史

The repository was created in 2021 and describes itself as a drop-in replacement of diffutils in Rust. Its README says the implementation began from an incomplete diff generator in Rust's compiletest tooling and was adapted toward compatibility with GNU diff and patch workflows.

### 采用历史

Compared with uutils-coreutils, diffutils is younger and less widely adopted, but it sits inside the same uutils ecosystem of Rust rewrites of standard Unix command families. The official project page labels it Beta and states that differences from GNU diffutils are treated as bugs.

Package metadata in this batch shows the Rust uutils package available through Homebrew, Nix, Scoop, and winget, while traditional GNU diffutils remains the mainstream package in many Unix distributions.

### 使用方式

Its practical use is familiar diffutils work: comparing files and directories, producing unified diffs, and supporting tools and scripts that expect diff-style output compatible with GNU diff and patch.

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

For package nerds, uutils-diffutils is interesting because diff is both a daily developer tool and a compatibility trap. A drop-in rewrite must satisfy old scripts, patch pipelines, and packaging tests, so even a small behavior difference is treated as a packaging-level bug.

### 时间线

- 2021: uutils/diffutils repository created on GitHub.
- 2024: v0.4.0 release appears in the official GitHub releases feed.
- 2026: v0.5.0 marked as latest in the official GitHub release listing.

### Related projects

- Related projects include GNU diffutils, GNU patch, Rust compiletest, uutils coreutils, and other uutils command-family rewrites.

### 来源

- GitHub API for repository creation date and releases.
- <https://github.com/uutils/diffutils README for origin, supported commands, and build example.>
- <https://uutils.org/diffutils/ for Beta status and GNU compatibility goal.>
- source_facts.package-manager for package-manager availability.


## 安全说明

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:** uutils-diffutils
- **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 - uutils-diffutils: normalized package name match | nixpkgs package indexes: pkgs/by-name/uu/uutils-diffutils/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - uutils.diffutils: normalized package name match | Windows Package Manager source index: uutils.diffutils from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - diffutils: installed executable or alias match | MacPorts ports tree: sysutils/diffutils/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - diffutils - 1:3.10-4: installed executable or alias match | Debian stable package indexes: diffutils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | File comparison utilities | https://www.gnu.org/software/diffutils/
- Debian apt - diffutils-doc - 1:3.10-4: installed executable or alias match | Debian stable package indexes: diffutils-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation for GNU diffutils in HTML format | https://www.gnu.org/software/diffutils/
- Nix - diffutils: installed executable or alias match | nixpkgs package indexes: diffutils from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - diffutils - 1:3.10-1build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: diffutils from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | File comparison utilities | https://www.gnu.org/software/diffutils/
- Ubuntu apt - diffutils-doc - 1:3.10-1build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: diffutils-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Documentation for GNU diffutils in HTML format | https://www.gnu.org/software/diffutils/
- apk - diffutils - 3.12-r0: installed executable or alias match | Alpine Linux edge package indexes: diffutils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Show differences among files | https://www.gnu.org/software/diffutils/
- apk - diffutils-doc - 3.12-r0: installed executable or alias match | Alpine Linux edge package indexes: diffutils-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Show differences among files (documentation) | https://www.gnu.org/software/diffutils/
- dnf - diffutils - 3.12-5.fc44: installed executable or alias match | Fedora Rawhide package metadata: diffutils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | GNU collection of diff utilities | https://www.gnu.org/software/diffutils/diffutils.html
- pacman - diffutils - 3.12-2: installed executable or alias match | Arch Linux sync databases: diffutils from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | Utility programs used for creating patch files | https://www.gnu.org/software/diffutils
- zypper - diffutils - 3.12-1.3: installed executable or alias match | openSUSE Tumbleweed package metadata: diffutils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | GNU diff Utilities | https://www.gnu.org/software/diffutils/
- zypper - diffutils-lang - 3.12-1.3: installed executable or alias match | openSUSE Tumbleweed package metadata: diffutils-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Translations for package diffutils | https://www.gnu.org/software/diffutils/
- Chocolatey - diffutils: installed executable or alias match | Chocolatey community package catalog: diffutils from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','dell-omsa'
- Scoop - main/diffutils: installed executable or alias match | Scoop official bucket manifest trees: bucket/diffutils.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [sad](https://www.automicvault.com/zh-hans/pkg/brew/sad/) - Shares av.db curated category or tags: cli, developer-tools, diff, rust.
- [uutils-findutils](https://www.automicvault.com/zh-hans/pkg/brew/uutils-findutils/) - Shares av.db curated category or tags: cli, developer-tools, gnu-compatible, rust.
- [action-validator](https://www.automicvault.com/zh-hans/pkg/brew/action-validator/) - Shares av.db curated category or tags: cli, developer-tools, rust.
- [add-determinism](https://www.automicvault.com/zh-hans/pkg/brew/add-determinism/) - Shares av.db curated category or tags: cli, developer-tools, rust.
- [adrs](https://www.automicvault.com/zh-hans/pkg/brew/adrs/) - Shares av.db curated category or tags: cli, developer-tools, rust.
- [air](https://www.automicvault.com/zh-hans/pkg/brew/air/) - Shares av.db curated category or tags: cli, developer-tools, rust.
- [argc](https://www.automicvault.com/zh-hans/pkg/brew/argc/) - Shares av.db curated category or tags: cli, developer-tools, rust.
- [as-tree](https://www.automicvault.com/zh-hans/pkg/brew/as-tree/) - Shares av.db curated category or tags: cli, developer-tools, rust.
- [uutils-coreutils](https://www.automicvault.com/zh-hans/pkg/brew/uutils-coreutils/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, compatible, cross, cross-platform, gnu.

## Combined YAML source

View the package source record on GitHub. [combined/uutils-diffutils.yml](https://github.com/automic-vault/db/blob/main/combined/uutils-diffutils.yml)


## 来源

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