macOS
brew install wdifflocal Homebrew formula metadata
sudo port install wdiffMacPorts ports tree · textproc/wdiff/Portfile · source: api.github.com
brew
Display word differences between text files. Version 1.2.2 via Homebrew; verified from local package data.
install
brew install wdifflocal Homebrew formula metadata
sudo port install wdiffMacPorts ports tree · textproc/wdiff/Portfile · source: api.github.com
sudo apt install wdiffDebian stable package indexes · wdiff · source: deb.debian.org
sudo dnf install wdiffFedora Rawhide package metadata · wdiff · source: dl.fedoraproject.org
nix profile install nixpkgs#wdiffnixpkgs package indexes · pkgs/by-name/wd/wdiff/package.nix · source: api.github.com
sudo pacman -S wdiffArch Linux sync databases · wdiff · source: geo.mirror.pkgbuild.com
sudo zypper install wdiffopenSUSE Tumbleweed package metadata · wdiff · source: download.opensuse.org
overview
Display word differences between text files
history
GNU wdiff is a word-oriented front end to diff. Instead of showing line-level changes, it tokenizes text into words, compares the temporary word-per-line forms with diff, and then reconstructs output that highlights word additions and deletions in the original text.
Its niche is prose and documentation review: it is useful when paragraphs have been reflowed or wrapped differently and a normal line diff would make a small wording change look like a large block replacement.
The GNU wdiff NEWS file records the first public release, version 0.00, in August 1992 by Francois Pinard. Pinard continued the early series through version 0.5 in November 1994, adding behavior such as case-insensitive comparison and standard-input handling.
In June 2007, Denver Gingerich released 0.5.4 and integrated changes from Pinard's 0.5g work from November 1998, including internationalized program messages and short manual pages for related tools. Martin von Gagern then revived the package with version 0.6.0 in March 2010, described by GNU as the first official release in a long time, and moved development from CVS to Bazaar.
The package reached version 1.0.0 in September 2011, with the version bump explicitly marking maturity. Later releases improved translations, Unicode and pager behavior, gnulib integration, and build-system maintenance. GNU lists version 1.2.2 from April 2014 as a release by Martin von Gagern and names him as the current maintainer on the project page.
The basic command compares an old file and a new file and prints an annotated copy of the new file. The default markers can be replaced with custom strings, terminal highlighting, less-compatible highlighting, LaTeX or troff markup, or ANSI color sequences.
wdiff can also consume a unified diff with the -d option, which makes it a post-processor for version-control output. Its companion tools include mdiff for multi-difference or cluster-oriented comparison, unify for converting context diffs and unified diffs, and wdiff2 as an experimental successor using mdiff as its backend.
wdiff is one of the small GNU text-processing tools that fills a gap left by line-based diff. It is not a version-control system feature or a rich review UI; it is a composable filter that can be piped into pagers, formatters, sed scripts, or documentation workflows.
For package-history purposes, it is also a neat example of GNU maintenance continuity: an early-1990s utility by Francois Pinard, revived and modernized in the 2010s with gnulib, gettext, autotools, translation updates, and Bazaar-hosted development.
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 |
|---|---|---|---|
mdiff | cli | global executable | |
unify | cli | global executable | |
wdiff | cli | global executable | |
wdiff2 | 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://www.gnu.org/software/wdiff/
install metadata
| Package key | brew:wdiff |
|---|---|
| Version | 1.2.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/wdiff |
| Homepage | https://www.gnu.org/software/wdiff/ |
| Repository | http://bzr.savannah.gnu.org/r/wdiff/trunk |
| Upstream docs | https://www.gnu.org/software/wdiff |
| License | GPL-3.0-or-later |
| Source archive | https://ftpmirror.gnu.org/gnu/wdiff/wdiff-1.2.2.tar.gz |
| Dependencies | gettext |
| Build dependencies | texinfo |
| Uses from macOS | ncurses |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | wdiff |
| Version Scheme | 0 |
| Revision | 2 |
| Conflicts With |
|
| 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.
wdiff 1.2.2-9
Compares two files word by word
https://www.gnu.org/software/wdiff/
sudo apt install wdiffwdiff-doc 1.2.2-9
Documentation for GNU wdiff
https://www.gnu.org/software/wdiff/
sudo apt install wdiff-docwdiff
nix profile install nixpkgs#wdiffwdiff 1.2.2-6build1
Compares two files word by word
https://www.gnu.org/software/wdiff/
sudo apt install wdiffwdiff-doc 1.2.2-6build1
Documentation for GNU wdiff
https://www.gnu.org/software/wdiff/
sudo apt install wdiff-docwdiff 1.2.2-58.fc45
Compare files on a word per word basis
https://www.gnu.org/software/wdiff/
sudo dnf install wdiffwdiff 1.2.2-5
A wordwise implementation of GNU diff
https://www.gnu.org/software/wdiff/
sudo pacman -S wdiffwdiff 1.2.2-9.5
Display Word Differences Between Text Files
https://www.gnu.org/software/wdiff/
sudo zypper install wdiffwdiff-lang 1.2.2-9.5
Translations for package wdiff
https://www.gnu.org/software/wdiff/
sudo zypper install wdiff-langwdiff
sudo port install wdiffunify
nix profile install nixpkgs#unifysource 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.