macOS
brew install dwdifflocal Homebrew formula metadata
sudo port install dwdiffMacPorts ports tree · textproc/dwdiff/Portfile · source: api.github.com
brew
Diff that operates at the word level. Version 2.1.4 via Homebrew; verified 2026-06-22.
install
brew install dwdifflocal Homebrew formula metadata
sudo port install dwdiffMacPorts ports tree · textproc/dwdiff/Portfile · source: api.github.com
sudo apt install dwdiffDebian stable package indexes · dwdiff · source: deb.debian.org
nix profile install nixpkgs#dwdiffnixpkgs package indexes · pkgs/by-name/dw/dwdiff/package.nix · source: api.github.com
overview
Diff that operates at the word level
history
dwdiff is G. P. Halkes' word-level diff utility. The official page positions it against wdiff: mostly command-line compatible, but with user-defined whitespace and delimiter handling so punctuation or other single characters can be treated as words.
The official copyright notice covers 2006-2018 and 2020, and the official distribution directory carries 1.0 release artifacts. Later 2.1.x news entries show maintenance releases in 2018 and 2020 for ICU/pkg-config and compiler compatibility rather than feature expansion.
The official download section says several Linux distributions and BSDs shipped packages or ports, naming Fedora, FreeBSD, and OpenBSD, with additional Unix packaging through Sunfreeware, MacPorts, Homebrew, Slackbuilds.org, Slacky.eu, and OpenPKG. The batch input adds Debian, Ubuntu, Nix, MacPorts, and Homebrew entries.
dwdiff compares text at word granularity and prints the new text annotated with insertion and deletion markers by default. It is useful when line diffs are too coarse, especially prose, documentation, localization, and wrapped text where changed words matter more than changed lines.
dwdiff matters because it is a classic small Unix text-processing tool that fills the gap between line-oriented diff and heavier document comparison. Its compatibility with wdiff plus delimiter controls made it packageable as a drop-in word-diff option across many Unix packaging systems.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
dwdiff | cli | global executable | |
dwfilter | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://os.ghalkes.nl/dwdiff.html
install metadata
| Package key | brew:dwdiff |
|---|---|
| Version | 2.1.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/dwdiff |
| Homepage | https://os.ghalkes.nl/dwdiff.html |
| Upstream docs | https://os.ghalkes.nl/dwdiff.html |
| License | GPL-3.0-only |
| Source archive | https://os.ghalkes.nl/dist/dwdiff-2.1.4.tar.bz2 |
| Last updated | 2026-06-22T14:03:13-07:00 |
| Pulse | updated |
| Dependencies | gettext, icu4c@78 |
| Build dependencies | gettext, pkgconf |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | dwdiff |
| Version Scheme | 0 |
| Revision | 11 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
dwdiff 2.1.4-2+b3
diff program that operates word by word
https://os.ghalkes.nl/dwdiff.html
sudo apt install dwdiffdwdiff
nix profile install nixpkgs#dwdiffdwdiff 2.1.4-2build2
diff program that operates word by word
https://os.ghalkes.nl/dwdiff.html
sudo apt install dwdiffdwdiff
sudo port install dwdiffsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.