Linux From Scratch: Version 5.1-pre1
Prev | Chapter 6. Installing basic system software | Next

# Installing Grep-2.5.1

The Grep package contains programs for searching through files.

    Approximate build time:  0.1 SBU
    Required disk space:     5.8 MB

Official download location for Grep (2.5.1):
ftp://ftp.gnu.org/gnu/grep/

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

##

## 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

##

## Contents of Grep

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

## Short descriptions

egrep prints lines matching an extended regular expression.

fgrep prints lines matching a list of fixed strings.

grep prints lines matching a basic regular expression.

Prev | Home | Next
Installing E2fsprogs-1.34 | Up | Installing Grub-0.94