Installing Lfs-Utils-0.4.2

The Lfs-Utils package contains a few helper files.

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

Official download location for Lfs-Utils (0.4.2):
http://www.linuxfromscratch.org/~winkie/downloads/lfs-utils/

The installation dependencies for Lfs-Utils haven't been checked yet.

Installation of Lfs-Utils

Prepare Lfs-Utils for compilation:

./configure --prefix=/usr --with-libc

The meaning of the configure option:

Compile the package:

make

And install it:

make install

Now copy two supporting files included in the Lfs-Utils tarball to their destination:

cp etc/{services,protocols} /etc

The /etc/services file is used to resolve service numbers to human-readable names, and the /etc/protocols does the same for protocol numbers.

Contents of Lfs-Utils

Installed programs: mktemp, tempfile, http-get and iana-net

Installed files: protocols, services

Short descriptions

mktemp creates temporary files in a secure manner. It is used in scripts.

tempfile creates temporary files in a less secure manner than mktemp. It is installed for backwards-compatibility.

The http-get script takes advantage of a little known feature of bash called "net redirection". It is used to download from websites without using any other programs.

iana-net uses the http-get script to simplify the process of procuring IANA's services and protocols configuration files.