5.26. Grep-2.21

The Grep package contains programs for searching through files.

Approximate build time: 0.2 SBU
Required disk space: 20 MB

5.26.1. Installation of Grep

Prepare Grep for compilation:

./configure --prefix=/tools

Compile the package:

make

Compilation is now complete. As discussed earlier, running the test suite is not mandatory for the temporary tools here in this chapter. To run the Grep test suite anyway, issue the following command:

make check

Install the package to a temporary directory:

make install DESTDIR=$(pwd)/debian/tmp

Create the package archive:

buildpkg --package=grep-pass1

Install the package:

dpkg -i ../grep-pass1_2.21_*.deb

Details on this package are located in Section 6.37.2, “Contents of Grep.”