# 使用 Homebrew, MacPorts, Nix, zypper, scoop 安装 dyff

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

## 安装

```sh
sudo av install brew:dyff
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dyff
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dyff
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dyff
```

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

- zypper (92%):

```sh
sudo zypper install dyff
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/dyff
```

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

## 软件包事实

- **软件包键:** brew:dyff
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dyff>
- **版本:** 1.12.0
- **来源摘要:** Diff tool for YAML files, and sometimes JSON
- **主页:** <https://github.com/homeport/dyff>
- **仓库:** <https://github.com/homeport/dyff>
- **许可证:** MIT
- **源码归档:** <https://github.com/homeport/dyff/archive/refs/tags/v1.12.0.tar.gz>
- **最后更新:** 2026-07-29T17:00:36+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dyff (cli)
- dyff (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.12.0
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/homeport/dyff
- 检测到的最新版本: v1.12.0 (当前)
## 项目历史与用法

dyff is Homeport's diff tool for YAML files and sometimes JSON. Its official README says it was inspired by old BOSH v1 deployment output that reported only the changed parts of YAML from one version to another.

### 项目历史

The official git history starts on 2018-03-09, with early commits adding Cobra-generated command structure and, by 2018-03-11, json, yaml, and between subcommands. Tags begin with v0.1-alpha in April 2018 and continue through v1.12.0 in April 2026.

### 采用历史

dyff spread through infrastructure and configuration workflows rather than general prose diffing. Its README documents FreeBSD ports/packages, Homebrew tap installation, mise, MacPorts, GitHub release binaries, a curl installer, and go install; the batch input also lists Homebrew, MacPorts, Nix, Scoop, and zypper.

### 使用方式

dyff compares local files, remote URIs, or stdin; reports differences by YAML document location; can use Spruce dot-style paths or go-patch path syntax; converts YAML and JSON; preserves map order; and can be wired into kubectl diff or Git external diff commands.

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

dyff is package-nerd relevant because modern infrastructure is YAML-heavy and ordinary line diff is often noisy for structured config. It packages the BOSH/Cloud Foundry style of semantic manifest comparison into a standalone CLI that also fits Kubernetes, Git, CI, and cross-platform binary distribution.

### 时间线

- 2018: Initial git commit and alpha tags.
- 2018: Early subcommands for JSON conversion, YAML conversion, and file comparison land in the official repository.
- 2026: v1.12.0 tagged on 2026-04-26.

### Related projects

- The official README names BOSH v1 as the inspiration and references Spruce path syntax, go-patch paths, kubectl diff integration, cf-deployment examples, Git external diff usage, jq pipelines, and Go installation.

### 来源

- <https://github.com/homeport/dyff#readme>
- <https://github.com/homeport/dyff/blob/main/.docs/commands/dyff.md>
- <https://github.com/homeport/dyff>


## 安全说明

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:** dyff
- **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 - dyff: normalized package name match | nixpkgs package indexes: pkgs/by-name/dy/dyff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - dyff - 1.12.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: dyff from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Diff tool for YAML files, and sometimes JSON | https://github.com/homeport/dyff
- MacPorts - dyff: normalized package name match | MacPorts ports tree: textproc/dyff/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/dyff: normalized package name match | Scoop official bucket manifest trees: bucket/dyff.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [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.
- [diffoscope](https://pkg.so/zh-hans/brew/diffoscope/) - 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.
- [nbdime](https://pkg.so/zh-hans/brew/nbdime/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [dhall-json](https://pkg.so/zh-hans/brew/dhall-json/) - Both packages work with overlapping file formats or content types. Shared terms: cli, configuration, developer, developer-tools, json.
- [yamlfmt](https://pkg.so/zh-hans/brew/yamlfmt/) - Both packages work with overlapping file formats or content types. Shared terms: cli, configuration, developer, developer-tools, files.
- [dhall-yaml](https://pkg.so/zh-hans/brew/dhall-yaml/) - Both packages work with overlapping file formats or content types. Shared terms: cli, configuration, developer, developer-tools, yaml.

## Combined YAML source

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