# 使用 Homebrew, MacPorts, Nix 安装 ddh

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

## 安装

```sh
sudo av install brew:ddh
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ddh
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ddh
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ddh
```

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

## 软件包事实

- **软件包键:** brew:ddh
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ddh>
- **版本:** 0.13.0
- **来源摘要:** Fast duplicate file finder
- **主页:** <https://github.com/darakian/ddh>
- **仓库:** <https://github.com/darakian/ddh>
- **许可证:** LGPL-3.0-only
- **源码归档:** <https://github.com/darakian/ddh/archive/refs/tags/0.13.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ddh (cli)
- ddh (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

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

DDH, expanded in its README as Directory Differential hTool, is a Rust duplicate-file finder that traverses directories, hashes files as needed, and reports duplicate and unique file sets.

### 项目历史

The GitHub repository was created in 2018 and the README keeps the project deliberately small: usable as both a Rust library and a standalone CLI. Its official releases show 0.12.0 and 0.13.0 in 2022, which is enough to establish a modest public package history without inventing a broader origin story.

### 采用历史

DDH has comparatively narrow adoption compared with older duplicate-file tools, but its availability through Homebrew, MacPorts, and Nix matches the pattern of Rust utilities that package cleanly for users who want a fast single binary.

### 使用方式

CLI usage centers on selecting directories, choosing duplicate-only or all-file verbosity, and emitting either human-readable standard output or JSON for downstream tools. The README also shows library use through a deduplication API.

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

DDH is interesting as a small Rust package because it combines a filesystem-maintenance job with package-manager-friendly installation and JSON output. Its significance is practical rather than historical: it is the kind of niche utility that becomes useful when installed everywhere through common package managers.

### 时间线

- 2018: Public GitHub repository created.
- 2022: DDH 0.12.0 released.
- 2022: DDH 0.13.0 released.

### Related projects

- ddh-move is named by the README as a downstream consumer of DDH JSON output.
- Other duplicate-file finders occupy the same package category, but DDH's official materials emphasize its Rust library and CLI split.

### 来源

- <https://github.com/darakian/ddh>
- <https://github.com/darakian/ddh#readme>
- <https://github.com/darakian/ddh/releases>


## 安全说明

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:** ddh
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - ddh: normalized package name match | nixpkgs package indexes: pkgs/by-name/dd/ddh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - ddh: normalized package name match | MacPorts ports tree: sysutils/ddh/Portfile from https://api.github.com/repos/macports/macports-ports/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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [rmlint](https://pkg.so/zh-hans/brew/rmlint/) - Shares pkgdb curated category or tags: cli, deduplication, duplicate-files, file-management, system.
- [periscope](https://pkg.so/zh-hans/brew/periscope/) - Shares pkgdb curated category or tags: cli, deduplication, duplicate-files, file-management, system.
- [fdupes](https://pkg.so/zh-hans/brew/fdupes/) - Shares pkgdb curated category or tags: cli, deduplication, duplicate-files, file-management, system.
- [czkawka](https://pkg.so/zh-hans/brew/czkawka/) - Shares pkgdb curated category or tags: cli, duplicate-files, file-management, rust, system.
- [rnr](https://pkg.so/zh-hans/brew/rnr/) - Shares pkgdb curated category or tags: cli, file-management, rust, system.
- [duff](https://pkg.so/zh-hans/brew/duff/) - Shares pkgdb curated category or tags: cli, deduplication, duplicate-files, system.
- [rmrfrs](https://pkg.so/zh-hans/brew/rmrfrs/) - Shares pkgdb curated category or tags: cli, file-management, rust, system.
- [eza](https://pkg.so/zh-hans/brew/eza/) - Shares pkgdb curated category or tags: cli, file-management, rust, system.

## Combined YAML source

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