# 使用 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
- **版本:** 1.12.0
- **来源摘要:** Diff tool for YAML files, and sometimes JSON
- **主页:** <https://github.com/homeport/dyff>
- **仓库:** <https://github.com/homeport/dyff>
- **最后更新:** 2026-07-29T17:00:36+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dyff (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
