6.53. Installing Util-linux-2.11h

Estimated build time:           1 minute
Estimated required disk space:  9 MB

6.53.1. FHS compliance notes

The FHS recommends that we use /var/lib/hwclock as the location of the adjtime file, instead of the usual /etc. To make hwclock, which is part of the util-linux package, FHS-compliant, run the following.

cp hwclock/hwclock.c hwclock/hwclock.c.backup &&
sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
   hwclock/hwclock.c > tmp~ &&
mv tmp~ hwclock/hwclock.c &&
mkdir -p /var/lib/hwclock

6.53.2. Installation of Util-Linux

Install Util-Linux by running the following commands:

./configure &&
make HAVE_SLN=yes ADD_RAW=yes &&
make HAVE_SLN=yes ADD_RAW=yes USRGAMES_DIR=/usr/bin install

6.53.3. Command explanations

HAVE_SLN=yes: We don't build this program because it already was installed by Glibc.

USRGAMES_DIR=/usr/bin: We use this so that the banner program is installed in /usr/bin instead of a seperate directory /usr/games being created for it.

6.53.4. Contents

The Util-linux package contains the arch, dmesg, kill, more, mount, umount, agetty, blockdev, cfdisk, ctrlaltdel, elvtune, fdisk, fsck.minix, hwclock, kbdrate, losetup, mkfs, mkfs.bfs, mkfs.minix, mkswap, sfdisk, swapoff, swapon, cal, chkdupexe, col, colcrt, colrm, column, cytune, ddate, fdformat, getopt, hexdump, ipcrm, ipcs, logger, look, mcookie, namei, rename, renice, rev, script, setfdprm, setsid, setterm, ul, whereis, write, ramsize, rdev, readprofile, rootflags, swapdev, tunelp and vidmode programs.

6.53.5. Description

6.53.5.1. arch

arch prints the machine architecture.

6.53.5.2. dmesg

dmesg is used to examine or control the kernel ring buffer (boot messages from the kernel).

6.53.5.3. kill

kill sends a specified signal to the specified process.

6.53.5.4. more

more is a filter for paging through text one screen full at a time.

6.53.5.5. mount

mount mounts a filesystem from a device to a directory (mount point).

6.53.5.6. umount

umount unmounts a mounted filesystem.

6.53.5.7. agetty

agetty opens a tty port, prompts for a login name and invokes the /bin/login command.

6.53.5.8. blockdev

blockdev allows to call block device ioctls from the command line

6.53.5.9. cfdisk

cfdisk is an libncurses based disk partition table manipulator.

6.53.5.10. ctrlaltdel

ctrlaltdel sets the function of the CTRL+ALT+DEL key combination (hard or soft reset).

6.53.5.11. elvtune

elvtune allows to tune the I/O elevator per block device queue basis.

6.53.5.12. fdisk

fdisk is a disk partition table manipulator.

6.53.5.13. fsck.minix

fsck.minix performs a consistency check for the Linux MINIX filesystem.

6.53.5.14. hwclock

hwclock queries and sets the hardware clock (Also called the RTC or BIOS clock).

6.53.5.15. kbdrate

kbdrate resets the keyboard repeat rate and delay time.

6.53.5.16. losetup

losetup sets up and controls loop devices.

6.53.5.17. mkfs

mkfs builds a Linux filesystem on a device, usually a harddisk partition.

6.53.5.18. mkfs.bfs

mkfs.bfs creates a SCO bfs file system on a device, usually a harddisk partition.

6.53.5.19. mkfs.minix

mkfs.minix creates a Linux MINIX filesystem on a device, usually a harddisk partition.

6.53.5.20. mkswap

mkswap sets up a Linux swap area on a device or in a file.

6.53.5.21. sfdisk

sfdisk is a disk partition table manipulator.

6.53.5.22. swapoff

swapoff disables devices and files for paging and swapping.

6.53.5.23. swapon

swapon enables devices and files for paging and swapping.

6.53.5.24. cal

cal displays a simple calender.

6.53.5.25. chkdupexe

chkdupexe finds duplicate executables.

6.53.5.26. col

col filters reverse line feeds from input.

6.53.5.27. colcrt

colcrt filters nroff output for CRT previewing.

6.53.5.28. colrm

colrm removes columns from a file.

6.53.5.29. column

column columnates lists.

6.53.5.30. cytune

cytune queries and modifies the interruption threshold for the Cyclades driver.

6.53.5.31. ddate

ddate converts Gregorian dates to Discordian dates.

6.53.5.32. fdformat

fdformat low-level formats a floppy disk.

6.53.5.33. getopt

getops parses command options the same way as the getopt C command.

6.53.5.34. hexdump

hexdump displays specified files, or standard input, in a user specified format (ascii, decimal, hexadecimal, octal).

6.53.5.35. ipcrm

ipcrm removes a specified resource.

6.53.5.36. ipcs

ipcs provides information on IPC facilities.

6.53.5.37. logger

logger makes entries in the system log.

6.53.5.38. look

look displays lines beginning with a given string.

6.53.5.39. mcookie

mcookie generates magic cookies for xauth.

6.53.5.40. namei

namei follows a pathname until a terminal point is found.

6.53.5.41. rename

rename renames files.

6.53.5.42. renice

renice alters priority of running processes.

6.53.5.43. rev

rev reverses lines of a file.

6.53.5.44. script

script makes typescript of terminal session.

6.53.5.45. setfdprm

setfdprm sets user-provides floppy disk parameters.

6.53.5.46. setsid

setsid runs programs in a new session.

6.53.5.47. setterm

setterm sets terminal attributes.

6.53.5.48. ul

ul reads a file and translates occurrences of underscores to the sequence which indicates underlining for the terminal in use.

6.53.5.49. whereis

whereis locates a binary, source and manual page for a command.

6.53.5.50. write

write sends a message to another user.

6.53.5.51. ramsize

ramsize queries and sets RAM disk size.

6.53.5.52. rdev

rdev queries and sets image root device, swap device, RAM disk size, or video mode.

6.53.5.53. readprofile

readprofile reads kernel profiling information.

6.53.5.54. rootflags

rootflags queries and sets extra information used when mounting root.

6.53.5.55. swapdev

swapdev queries and sets swap device.

6.53.5.56. tunelp

tunelp sets various parameters for the LP device.

6.53.5.57. vidmode

vidmode queries and sets the video mode.

6.53.6. Dependencies

Util-linux-2.11h needs the following to be installed:


sh from the bash package

as from the binutils package
ld from the binutils package

chgrp from the fileutils package
chmod from the fileutils package
cp from the fileutils package
install from the fileutils package
ln from the fileutils package
mkdir from the fileutils package
mv from the fileutils package
rm from the fileutils package

cc from the gcc package
cpp from the gcc package

rpcgen from the glibc package

grep from the grep package

make from the make package

sed from the sed package

unam  from the sh-utils package
whoami from the sh-utils package

cat from the textutils package