# 使用 Homebrew, apk, Nix, pacman 安装 diffoci

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

## 安装

```sh
sudo av install brew:diffoci
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install diffoci
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add diffoci
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#diffoci
```

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

- pacman (92%):

```sh
sudo pacman -S diffoci
```

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

## 软件包事实

- **软件包键:** brew:diffoci
- **软件包管理器:** Homebrew
- **版本:** 0.1.8
- **来源摘要:** Diff for Docker and OCI container images
- **主页:** <https://github.com/reproducible-containers/diffoci>
- **仓库:** <https://github.com/reproducible-containers/diffoci>
- **最后更新:** 2026-07-28T14:10:39+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- diffoci (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

diffoci is a command-line comparison tool for Docker and OCI container images, aimed at finding the practical differences between two image artifacts in reproducible-builds work.

### 项目历史

The project lives under the reproducible-containers organization and frames itself as a diff tool for Docker and OCI images. Its README presents strict comparison as the baseline and semantic comparison as the more useful mode for image reproducibility checks.

### 采用历史

The official README documents binary releases for Linux and macOS, installation through mise, and source installation with Go, which places diffoci in the familiar package-manager and single-binary CLI lane for container tooling.

### 使用方式

Typical use compares two image references with `diffoci diff IMAGE0 IMAGE1`; the README recommends `--semantic` when timestamp, layer ordering, build history, or image-name annotation noise would make strict output too noisy. It can also compare local Docker or Podman images with `docker://` and `podman://` prefixes and can dump differing files to a report directory.

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

For package maintainers and reproducible-builds people, diffoci fills the gap between byte-level archive comparison and the layered, metadata-heavy world of OCI images. It is useful when the artifact being packaged is not a tarball or binary but a container image with registry, platform, and layer semantics.

### 时间线

- 2023: README examples focus on comparing Alpine and Docker Hub images in reproducibility investigations.
- 2020s: Project distributed as a Go CLI with Linux and macOS binary releases.

### Related projects

- diffoci is adjacent to diffoscope for deep artifact comparison, but specializes in Docker and OCI image layout, containerd, Docker, Podman, and registry workflows.

### 来源

- <https://github.com/reproducible-containers/diffoci#readme>
- <https://github.com/reproducible-containers/diffoci/blob/master/go.mod>


## 安全说明

broad file, network, media, or database tool signal. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- infrastructure mutation or orchestration signal

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

- Nix - diffoci: normalized package name match | nixpkgs package indexes: pkgs/by-name/di/diffoci/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - diffoci - 0.1.8-r1: normalized package name match | Alpine Linux edge package indexes: diffoci from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | diff for Docker and OCI container images | https://github.com/reproducible-containers/diffoci
- pacman - diffoci - 0.1.8-1: normalized package name match | Arch Linux sync databases: diffoci from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | diff for Docker and OCI container images | https://github.com/reproducible-containers/diffoci


## Combined YAML source

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