6.23. Diffutils-2.8.7

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

6.23.1. Installation of Diffutils

Prepare Diffutils for compilation:

./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --prefix=/usr

Compile the package:

make

Install the package:

make DESTDIR=${CLFS} install

6.23.2. Contents of Diffutils

Installed programs: cmp, diff, diff3, and sdiff

Short Descriptions

cmp

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

diff

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

diff3

Compares three files line by line

sdiff

Merges two files and interactively outputs the results