6.44. Installing Grep-2.5.1

Estimated build time:           0.1 SBU
Estimated required disk space:  5.8 MB

6.44.1. Contents of Grep

Grep is a program used to print lines from a file matching a specified pattern.

Installed programs: egrep (link to grep), fgrep (link to grep) and grep

6.44.2.

6.44.3. Grep Installation Dependencies

Grep depends on: Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Make, Sed, Texinfo.

6.44.4.

6.44.5. Installation of Grep

Prepare Grep for compilation:

./configure --prefix=/usr --bindir=/bin \
    --with-included-regex

Compile the package:

make

This package has a test suite available which can perform a number of checks to ensure it built correctly. Should you choose to run it, the following command will do so:

make check

And install the package:

make install