# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 diffoscope

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

## 安装

```sh
sudo av install brew:diffoscope
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install diffoscope
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install diffoscope
```

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

### Linux

- apk (92%):

```sh
sudo apk add diffoscope
```

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

- Debian apt (92%):

```sh
sudo apt install diffoscope
```

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

- dnf (92%):

```sh
sudo dnf install diffoscope
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#diffoscope
```

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

- pacman (92%):

```sh
sudo pacman -S diffoscope
```

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

- zypper (92%):

```sh
sudo zypper install diffoscope
```

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

## 软件包事实

- **软件包键:** brew:diffoscope
- **软件包管理器:** Homebrew
- **版本:** 326
- **来源摘要:** In-depth comparison of files, archives, and directories
- **主页:** <https://diffoscope.org>
- **最后更新:** 2026-07-31T21:29:28Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- diffoscope (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 326
## 项目历史与用法

diffoscope is a deep comparison tool for files, archives, directories, and build artifacts. It recursively unpacks many formats and normalizes binary data into more human-readable forms so package builders can understand why two outputs differ.

### 项目历史

diffoscope began in the Debian reproducible-builds project, was originally named debbindiff, and is now developed as part of the wider Reproducible Builds initiative. The official README describes its purpose as quickly understanding why two builds of the same package produce different outputs.

### 采用历史

The official website documents installation paths through pip, Debian, Fedora, Gentoo, openSUSE, Arch Linux, FreeBSD, OpenBSD, NixOS, Homebrew, Docker images, and source tarballs. That breadth reflects its role as a cross-distribution diagnostic tool rather than a Debian-only utility.

### 使用方式

diffoscope is used from the command line to compare two inputs and produce text or HTML reports. It exits with 0 when inputs are the same, 1 when they differ, and 2 on trouble, which makes it scriptable in package build, CI, and reproducibility workflows.

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

Package maintainers care about diffoscope because it turns opaque binary differences into reviewable structure: archives, filesystem images, language bytecode, package formats, and metadata can be unpacked and compared in one workflow. It is one of the canonical tools for explaining reproducible-build failures.

### 时间线

- 2010s: Started by the Debian reproducible-builds project under the name debbindiff.
- 2010s: Renamed diffoscope and developed under the wider Reproducible Builds initiative.
- 2026: Official site lists release 322 on 26 Jun 2026.

### Related projects

- The official site lists pkgdiff and Open Build Service build-compare as similar software, and the project is closely tied to reproducible-builds.org infrastructure.

### 来源

- <https://diffoscope.org/>
- <https://salsa.debian.org/reproducible-builds/diffoscope/-/raw/master/README.rst>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Debian apt - diffoscope - 297+deb13u1: normalized package name match | Debian stable package indexes: diffoscope from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | in-depth visual diff tool for files, archives and directories | https://diffoscope.org
- Debian apt - diffoscope-minimal - 297+deb13u1: normalized package name match | Debian stable package indexes: diffoscope-minimal from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | in-depth visual diff tool for files, archives and directories (minimal package) | https://diffoscope.org
- Nix - diffoscope: normalized package name match | nixpkgs package indexes: pkgs/by-name/di/diffoscope/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - diffoscope - 259: normalized package name match | Ubuntu 24.04 LTS package indexes: diffoscope from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | in-depth visual diff tool for files, archives and directories | https://diffoscope.org
- Ubuntu apt - diffoscope-minimal - 259: normalized package name match | Ubuntu 24.04 LTS package indexes: diffoscope-minimal from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | in-depth visual diff tool for files, archives and directories (minimal package) | https://diffoscope.org
- apk - diffoscope - 309-r2: normalized package name match | Alpine Linux edge package indexes: diffoscope from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | In-depth comparison of files, archives, and directories | https://diffoscope.org/
- apk - diffoscope-pyc - 309-r2: normalized package name match | Alpine Linux edge package indexes: diffoscope-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for diffoscope | https://diffoscope.org/
- dnf - diffoscope - 325-2.fc45: normalized package name match | Fedora Rawhide package metadata: diffoscope from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | In-depth comparison of files, archives, and directories | https://diffoscope.org/
- pacman - diffoscope - 326-1: normalized package name match | Arch Linux sync databases: diffoscope from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Tool for in-depth comparison of files, archives, and directories | https://diffoscope.org/
- zypper - diffoscope - 322-1.2: normalized package name match | openSUSE Tumbleweed package metadata: diffoscope from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | In-depth comparison of files, archives, and directories | https://diffoscope.org/
- MacPorts - diffoscope: normalized package name match | MacPorts ports tree: sysutils/diffoscope/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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