# Install add-determinism with Homebrew, dnf, Nix, pacman

Build postprocessor to reset metadata fields for build reproducibility. Version 0.7.3 via Homebrew; verified 2026-06-09. Also installable with nix: nix profile install nixpkgs#add-determinism.

## Install

```sh
sudo av install brew:add-determinism
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install add-determinism
```

  Evidence: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install add-determinism
```

  Evidence: Fedora Rawhide package metadata: add-determinism from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#add-determinism
```

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

- pacman (92%):

```sh
sudo pacman -S add-determinism
```

  Evidence: Arch Linux sync databases: add-determinism from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:add-determinism
- **Package manager:** Homebrew
- **Version:** 0.7.3
- **Source summary:** Build postprocessor to reset metadata fields for build reproducibility
- **Homepage:** <https://github.com/keszybz/add-determinism>
- **Repository:** <https://github.com/keszybz/add-determinism>
- **Last updated:** 2026-06-09T00:53:04Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- add-det (alias)
- linkdupes (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.7.3
## Project history and usage

add-determinism is a Rust package-build postprocessor for removing common sources of nondeterminism after a build has produced files. Its two command-line programs, add-det and linkdupes, are aimed at reproducible package builds rather than general end-user file cleanup.

### Project history

The GitHub repository was created in March 2024, and the official README presents the project as a from-scratch Rust implementation inspired by Debian's strip-nondeterminism. The README explains the Fedora/RHEL motivation directly: the author wanted tooling suitable for RPM buildroots without pulling Perl into all build environments, and with behavior tuned for Fedora-style artifacts such as Python bytecode.

The project quickly grew beyond a single timestamp scrubber. add-det rewrites supported archive and generated-file formats in place while preserving safety on failures; linkdupes handles duplicate files in build trees while accounting for SOURCE_DATE_EPOCH and SELinux contexts.

### Adoption history

The README documents intended integration with RPM build-root postprocessing through --brp mode and links to redhat-rpm-config pull requests adding add-det and linkdupes to %__os_install_post. The supplied package-manager metadata also shows packaging in Homebrew, Fedora/DNF, Nix, and Arch/pacman.

### How it is used

Package maintainers run add-det over files or directories to clamp or strip metadata in ar, jar, javadoc HTML, gzip, pyc, and zip outputs. In check mode it reports files that would be modified without rewriting them, which makes it useful in reproducibility tests.

linkdupes walks build output trees and hardlinks files with identical content and compatible metadata. Its package-build angle is that it can clamp mtimes against SOURCE_DATE_EPOCH and avoid unsafe hardlinking across mismatched SELinux contexts.

### Why package nerds care

This is a small but very package-manager-native tool: it encodes distro build-root concerns, reproducible-build conventions, and RPM macro integration in one binary crate. For package nerds, the interesting part is not a new file format but a practical attempt to make post-build cleanup deterministic, portable across builders, and cheap to add to packaging pipelines.

### Timeline

- 2024-03: GitHub repository created.
- 2024: v0.1.0 appears in the official tag list.
- Current README: add-det and linkdupes are documented as build postprocessors for reproducible package builds.

### Related projects

- strip-nondeterminism is cited by the README as the inspiration.
- redhat-rpm-config is cited by the README for RPM post-install integration.

### Sources

- <https://api.github.com/repos/keszybz/add-determinism>
- <https://api.github.com/repos/keszybz/add-determinism/tags?per_page=100>
- <https://github.com/keszybz/add-determinism#readme>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

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

## Other Package-Manager Records

- Nix - add-determinism: normalized package name match | nixpkgs package indexes: pkgs/by-name/ad/add-determinism/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - add-determinism - 0.7.3-3.fc45: normalized package name match | Fedora Rawhide package metadata: add-determinism from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | RPM buildroot helper to strip nondeterministic bits in files | https://crates.io/crates/add-determinism
- pacman - add-determinism - 0.7.3-1: normalized package name match | Arch Linux sync databases: add-determinism from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Build postprocessor to reset metadata fields for build reproducibility | https://github.com/keszybz/add-determinism
- dnf - linkdupes - 0.7.3-3.fc45: installed executable or alias match | Fedora Rawhide package metadata: linkdupes from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | RPM buildroot helper to hardlink identical files | https://crates.io/crates/add-determinism


## Combined YAML source

View the package source record on GitHub. [combined/add-determinism.yml](https://github.com/mxcl/pkgdb/blob/main/combined/add-determinism.yml)


## Sources

- 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
