# Install colordiff with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Color-highlighted diff(1) output. Version 1.0.22 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:colordiff
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install colordiff
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install colordiff
```

  Evidence: MacPorts ports tree: textproc/colordiff/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add colordiff
```

  Evidence: Alpine Linux edge package indexes: colordiff from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install colordiff
```

  Evidence: Debian stable package indexes: colordiff from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install colordiff
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#colordiff
```

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

- pacman (92%):

```sh
sudo pacman -S colordiff
```

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

- zypper (92%):

```sh
sudo zypper install colordiff
```

  Evidence: openSUSE Tumbleweed package metadata: colordiff from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:colordiff
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/colordiff>
- **Version:** 1.0.22
- **Source summary:** Color-highlighted diff(1) output
- **Homepage:** <https://www.colordiff.org/>
- **Repository:** <https://github.com/daveewart/colordiff>
- **Upstream docs:** <https://github.com/daveewart/colordiff#readme>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://www.colordiff.org/colordiff-1.0.22.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cdiff (cli)
- colordiff (cli)
- cdiff (alias)
- colordiff (alias)

## Build dependencies

- coreutils

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.0.22
- Local data: ok
- Upstream repository: https://www.colordiff.org/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

colordiff is Dave Ewart's Perl wrapper for `diff`, adding ANSI color to traditional diff output while preserving the familiar diff command-line workflow.

### Project history

The program dates to 2002 and has remained intentionally small: it wraps or filters diff-family output, recognizes several diff formats, and applies configurable color schemes. Its changelog shows a long maintenance history of portability fixes, support for more diff styles, and terminal behavior improvements rather than a shift in scope.

### Adoption history

The upstream site tells Debian and Ubuntu users to install it from their distributions and notes that colordiff is packaged for other Linux, Unix, and BSD systems. The supplied package-manager metadata backs that up with entries across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, Nix, and openSUSE.

### How it is used

Package users commonly run `colordiff file1 file2`, pipe existing `diff -u` output through `colordiff`, or alias `diff=colordiff`. The companion `cdiff` helper exists for compressed or URL-based diffs.

### Why package nerds care

colordiff is the archetypal tiny terminal-enhancement package: stable, scriptable, dependency-light, and useful before Git's color defaults became universal. Its value to package managers is broad portability and a predictable configuration surface rather than novelty.

### Timeline

- 2002: colordiff copyright history begins.
- 2000s: Support expanded for context, Subversion, side-by-side, wdiff, p4, and debdiff output.
- 2013: Upstream signing key changed for release tarballs.
- 2026: Version 1.0.22 released.

### Related projects

- colordiff sits beside `diff`, `wdiff`, `debdiff`, CVS/Subversion diff output, and Git diff workflows, serving as a colorizing layer rather than a replacement diff algorithm.

### Sources

- <https://www.colordiff.org/>
- <https://github.com/daveewart/colordiff>
- <https://raw.githubusercontent.com/daveewart/colordiff/master/README>
- <https://raw.githubusercontent.com/daveewart/colordiff/master/CHANGES>


## 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:** colordiff
- **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

- Debian apt - colordiff - 1.0.21-1: normalized package name match | Debian stable package indexes: colordiff from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool to colorize 'diff' output | http://www.colordiff.org/
- Nix - colordiff: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/colordiff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - colordiff - 1.0.20-1: normalized package name match | Ubuntu 24.04 LTS package indexes: colordiff from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool to colorize 'diff' output | http://www.colordiff.org/
- apk - colordiff - 1.0.22-r0: normalized package name match | Alpine Linux edge package indexes: colordiff from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Color terminal highlighter for diff files | https://www.colordiff.org
- apk - colordiff-doc - 1.0.22-r0: normalized package name match | Alpine Linux edge package indexes: colordiff-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Color terminal highlighter for diff files (documentation) | https://www.colordiff.org
- dnf - colordiff - 1.0.22-1.fc44: normalized package name match | Fedora Rawhide package metadata: colordiff from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Color terminal highlighter for diff files | http://www.colordiff.org/
- pacman - colordiff - 1.0.22-1: normalized package name match | Arch Linux sync databases: colordiff from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A Perl script wrapper for 'diff' that produces the same output but with pretty 'syntax' highlighting | https://www.colordiff.org/
- zypper - colordiff - 1.0.21-1.7: normalized package name match | openSUSE Tumbleweed package metadata: colordiff from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Colour-highlighted 'diff' output | https://www.colordiff.org
- MacPorts - colordiff: normalized package name match | MacPorts ports tree: textproc/colordiff/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Ubuntu apt - python3-cdiff - 1.0-1.1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: python3-cdiff from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Colored, incremental diff with side by side and auto pager support (Python 3)


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [coreutils](https://www.automicvault.com/pkg/brew/coreutils/) - Build dependency declared by Homebrew.
- [colormake](https://www.automicvault.com/pkg/brew/colormake/) - Shares av.db curated category or tags: cli, color-output, developer-tools, perl, terminal.
- [diff-so-fancy](https://www.automicvault.com/pkg/brew/diff-so-fancy/) - Shares av.db curated category or tags: cli, developer-tools, diff, terminal.
- [diffr](https://www.automicvault.com/pkg/brew/diffr/) - Shares av.db curated category or tags: cli, developer-tools, diff, terminal.
- [icdiff](https://www.automicvault.com/pkg/brew/icdiff/) - Shares av.db curated category or tags: cli, developer-tools, diff, terminal.
- [aha](https://www.automicvault.com/pkg/brew/aha/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [amtterm](https://www.automicvault.com/pkg/brew/amtterm/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [ansifilter](https://www.automicvault.com/pkg/brew/ansifilter/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [ccat](https://www.automicvault.com/pkg/brew/ccat/) - Shares av.db curated category or tags: cli, developer-tools, terminal.

## Combined YAML source

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