Installing Util-linux-2.12

Estimated build time:           0.2 SBU
Estimated required disk space:  16 MB

Contents of Util-linux

(Last checked against version 2.12.)

The Util-linux package contains a number of miscellaneous utility programs. Some of the more prominent utilities are used to mount, unmount, format, partition and manage disk drives, open tty ports and fetch kernel messages.

Installed programs: agetty, arch, blockdev, cal, cfdisk, chkdupexe, col, colcrt, colrm, column, ctrlaltdel, cytune, ddate, dmesg, elvtune, fdformat, fdisk, fsck.cramfs, fsck.minix, getopt, hexdump, hwclock, ipcrm, ipcs, isosize, kill, line, logger, look, losetup, mcookie, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap, more, mount, namei, parse.bash, parse.tcsh, pg, pivot_root, ramsize (link to rdev), raw, rdev, readprofile, rename, renice, rev, rootflags (link to rdev), script, setfdprm, setsid, setterm, sfdisk, swapoff (link to swapon), swapon, test.bash, test.tcsh, tunelp, ul, umount, vidmode (link to rdev), whereis and write

Util-linux Installation Dependencies

(Last checked against version 2.11n.)

Bash: sh
Binutils: as, ld
Coreutils: cat, chgrp, chmod, cp, install, ln, mv, rm, uname, whoami
Diffutils: cmp
GCC: cc, cc1, collect2, cpp
Gettext: msgfmt, xgettext
Glibc: rpcgen
Grep: grep
Make: make
Sed: sed

FHS compliance notes

The FHS recommends that we use /var/lib/hwclock, instead of the usual /etc, as the location for the adjtime file. To make the hwclock program FHS-compliant, run the following:

cp hwclock/hwclock.c{,.backup}
sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
    hwclock/hwclock.c.backup > hwclock/hwclock.c
mkdir -p /var/lib/hwclock

Installation of Util-linux

Prepare Util-linux for compilation:

./configure

Compile the package:

make HAVE_SLN=yes

The meaning of the make parameter:

And install the package:

make HAVE_SLN=yes install