10.38. Diffutils-3.3

The Diffutils package contains programs that show the differences between files or directories.

10.38.1. Installation of Diffutils

Prepare Diffutils for compilation:

./configure --prefix=/usr

Diffutils wants ed as the default editor. The following sed will change the default to vim:

sed -i 's@\(^#define DEFAULT_EDITOR_PROGRAM \).*@\1"vi"@' lib/config.h

Compile the package:


To test the results, issue: make check.

Install the package:

make install

10.38.2. Contents of Diffutils

Installed programs: cmp, diff, diff3, and sdiff

Short Descriptions


Compares two files and reports whether or in which bytes they differ


Compares two files or directories and reports which lines in the files differ


Compares three files line by line


Merges two files and interactively outputs the results