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

# Installing Less-381

The Less package contains a text file viewer.

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

Official download location for Less (381):
ftp://ftp.gnu.org/gnu/less/

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

##

## Installation of Less

Prepare Less for compilation:

    ./configure --prefix=/usr --bindir=/bin --sysconfdir=/etc

The meaning of the configure option:

- `--sysconfdir=/etc`: This option tells the programs created by the package to look in `/etc` for their configuration files.

Compile the package:

    make

And install it:

    make install

##

## Contents of Less

Installed programs: less, lessecho and lesskey

## Short descriptions

less is a file viewer or pager. It displays the contents of the given file, letting you scroll around, find strings, and jump to marks.

lessecho is needed to expand metacharacters, such as * and ?, in filenames on Unix systems.

lesskey is used to specify the key bindings for less.

Prev | Home | Next
Installing Bison-1.875 | Up | Installing Groff-1.19