6.10. Grep-3.7

The Grep package contains programs for searching through the contents of files.

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

6.10.1. Installation of Grep

Prepare Grep for compilation:

./configure --prefix=/usr   \
            --host=$LFS_TGT \
            sv_cv_stack_direction=-1 \
            sv_cv_stack_direction_msg="grows down"

Compile the package:

make

Install the package:

make DESTDIR=$LFS install

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