# 使用 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
- **版本:** 0.13.0
- **来源摘要:** Fast duplicate file finder
- **主页:** <https://github.com/darakian/ddh>
- **仓库:** <https://github.com/darakian/ddh>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ddh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


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