Installing Util-linux-2.11m

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

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

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 install

Command explanations

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

Contents

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

Description

agetty

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

arch

arch prints the machine architecture.

blockdev

blockdev allows to call block device ioctls from the command line

cal

cal displays a simple calender.

cfdisk

cfdisk is an libncurses based disk partition table manipulator.

chkdupexe

chkdupexe finds duplicate executables.

col

col filters reverse line feeds from input.

colcrt

colcrt filters nroff output for CRT previewing.

colrm

colrm removes columns from a file.

column

column columnates lists.

ctrlaltdel

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

cytune

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

ddate

ddate converts Gregorian dates to Discordian dates.

dmesg

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

elvtune

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

fdformat

fdformat low-level formats a floppy disk.

fdisk

fdisk is a disk partition table manipulator.

fsck.minix

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

getopt

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

hexdump

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

hwclock

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

ipcrm

ipcrm removes a specified resource.

ipcs

ipcs provides information on IPC facilities.

kill

kill sends a specified signal to the specified process.

logger

logger makes entries in the system log.

look

look displays lines beginning with a given string.

losetup

losetup sets up and controls loop devices.

mcookie

mcookie generates magic cookies for xauth.

mkfs

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

mkfs.bfs

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

mkfs.minix

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

mkswap

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

more

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

mount

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

namei

namei follows a pathname until a terminal point is found.

umount

umount unmounts a mounted filesystem.

ramsize

ramsize queries and sets RAM disk size.

rdev

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

readprofile

readprofile reads kernel profiling information.

rename

rename renames files.

renice

renice alters priority of running processes.

rev

rev reverses lines of a file.

rootflags

rootflags queries and sets extra information used when mounting root.

script

script makes typescript of terminal session.

setfdprm

setfdprm sets user-provides floppy disk parameters.

setsid

setsid runs programs in a new session.

setterm

setterm sets terminal attributes.

sfdisk

sfdisk is a disk partition table manipulator.

swapdev

swapdev queries and sets swap device.

swapoff

swapoff disables devices and files for paging and swapping.

swapon

swapon enables devices and files for paging and swapping.

tunelp

tunelp sets various parameters for the LP device.

ul

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

vidmode

vidmode queries and sets the video mode.

whereis

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

write

write sends a message to another user.

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