# Install ddh with Homebrew, MacPorts, Nix

Fast duplicate file finder. Version 0.13.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ddh
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ddh
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:ddh
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ddh>
- **Version:** 0.13.0
- **Source summary:** Fast duplicate file finder
- **Homepage:** <https://github.com/darakian/ddh>
- **Repository:** <https://github.com/darakian/ddh>
- **Upstream docs:** <https://github.com/darakian/ddh#readme>
- **License:** LGPL-3.0-only
- **Source archive:** <https://github.com/darakian/ddh/archive/refs/tags/0.13.0.tar.gz>
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- ddh (cli)
- ddh (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 0.13.0
- Local data: ok
- Upstream repository: https://github.com/darakian/ddh
- Upstream latest detected: 0.13.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [rmlint](https://www.automicvault.com/pkg/brew/rmlint/) - Shares av.db curated category or tags: cli, deduplication, duplicate-files, file-management, system.
- [periscope](https://www.automicvault.com/pkg/brew/periscope/) - Shares av.db curated category or tags: cli, deduplication, duplicate-files, file-management, system.
- [czkawka](https://www.automicvault.com/pkg/brew/czkawka/) - Shares av.db curated category or tags: cli, duplicate-files, file-management, rust, system.
- [duff](https://www.automicvault.com/pkg/brew/duff/) - Shares av.db curated category or tags: cli, deduplication, duplicate-files, system.
- [fdupes](https://www.automicvault.com/pkg/brew/fdupes/) - Shares av.db curated category or tags: cli, deduplication, duplicate-files, file-management, system.
- [jdupes](https://www.automicvault.com/pkg/brew/jdupes/) - Shares av.db curated category or tags: cli, deduplication, duplicate-files, file-management, system.
- [rmrfrs](https://www.automicvault.com/pkg/brew/rmrfrs/) - Shares av.db curated category or tags: cli, file-management, rust, system.
- [rnr](https://www.automicvault.com/pkg/brew/rnr/) - Shares av.db 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/automic-vault/db/blob/main/combined/ddh.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
