6.32. Inetutils-1.5

The Inetutils package contains programs for basic networking.

6.32.1. Installation of Inetutils

Not all programs that come with Inetutils will be installed. However, the Inetutils build system will insist on installing all the man pages anyway. The following patch will correct this situation:

patch -Np1 -i ../inetutils-1.5-no_server_man_pages-2.patch

The following set of seds prevent binaries from being installed as setuid root:

for dir in ping rcp rlogin rsh; do
    cp ${dir}/Makefile.in{,.orig}
    sed '/^SUIDMODE =/s/-o root//' ${dir}/Makefile.in.orig > ${dir}/Makefile.in

Prepare Inetutils for compilation:

./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --prefix=/usr --libexecdir=/usr/sbin --sysconfdir=/etc \
    --localstatedir=/var --disable-logger --disable-syslogd \
    --disable-whois --disable-servers

The meaning of the configure options:


This option prevents Inetutils from installing the logger program, which is used by scripts to pass messages to the System Log Daemon. Do not install it because Util-linux installs a better version later.


This option prevents Inetutils from installing the System Log Daemon, which is installed with the Sysklogd package.


This option disables the building of the Inetutils whois client, which is out of date. Instructions for a better whois client are in the BLFS book.


This disables the installation of the various network servers included as part of the Inetutils package. These servers are deemed not appropriate in a basic CLFS system. Some are insecure by nature and are only considered safe on trusted networks. More information can be found at http://www.linuxfromscratch.org/blfs/view/svn/basicnet/inetutils.html. Note that better replacements are available for many of these servers.

Compile the package:


Install the package:

make DESTDIR=${CLFS} install

Move the ping and ping6 programs to their FHS-compliant place:

mv -v ${CLFS}/usr/bin/ping{,6} ${CLFS}/bin

6.32.2. Contents of Inetutils

Installed programs: ftp, ifconfig, ping, ping6, rcp, rlogin, rsh, talk, telnet, and tftp

Short Descriptions


Is the file transfer protocol program


Utility for configuring network interfaces


Sends echo-request packets and reports how long the replies take


Sends echo-request packets and reports how long the replies take this is the IPV6 version


Performs remote file copy


Performs remote login


Runs a remote shell


Is used to chat with another user


An interface to the TELNET protocol


A trivial file transfer program