From e1428f313c18c0839399966a96035cc9350d8e93 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 11 Feb 2011 01:19:47 +0000 Subject: Upgrade to Util-linux-2.19. Changed name from util-linux-ng. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9459 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/chapter06.xml | 2 +- chapter06/e2fsprogs.xml | 2 +- chapter06/sysvinit.xml | 2 +- chapter06/util-linux-ng.xml | 1032 ------------------------------------------ chapter06/util-linux.xml | 1053 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 1056 insertions(+), 1035 deletions(-) delete mode 100644 chapter06/util-linux-ng.xml create mode 100644 chapter06/util-linux.xml (limited to 'chapter06') diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index 57c4aba4c..56f9e6a0c 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -30,7 +30,7 @@ - + diff --git a/chapter06/e2fsprogs.xml b/chapter06/e2fsprogs.xml index 4d030aecc..75eeb28d4 100644 --- a/chapter06/e2fsprogs.xml +++ b/chapter06/e2fsprogs.xml @@ -88,7 +88,7 @@ cd build libuuid and libblkid libraries, the uuidd daemon, and the - fsck wrapper, as Util-Linux-NG installed all of + fsck wrapper, as Util-Linux installed all of them earlier. diff --git a/chapter06/sysvinit.xml b/chapter06/sysvinit.xml index e5726994e..9027e74be 100644 --- a/chapter06/sysvinit.xml +++ b/chapter06/sysvinit.xml @@ -56,7 +56,7 @@ src/init.c A maintained version of the wall program was - installed earlier by Util-linux-ng. Suppress the installation of Sysvinit's + installed earlier by Util-linux. Suppress the installation of Sysvinit's version of this program and its man page: sed -i -e 's/utmpdump wall/utmpdump/' \ diff --git a/chapter06/util-linux-ng.xml b/chapter06/util-linux-ng.xml deleted file mode 100644 index 592004070..000000000 --- a/chapter06/util-linux-ng.xml +++ /dev/null @@ -1,1032 +0,0 @@ - - - %general-entities; -]> - - - - - - util-linux-ng - &util-linux-ng-version; -
&util-linux-ng-url;
-
- - Util-linux-ng-&util-linux-ng-version; - - - Util-linux-ng - - - - - - <para>The Util-linux-ng package contains miscellaneous utility programs. - Among them are utilities for handling file systems, consoles, partitions, - and messages.</para> - - <segmentedlist> - <segtitle>&buildtime;</segtitle> - <segtitle>&diskspace;</segtitle> - - <seglistitem> - <seg>&util-linux-ng-ch6-sbu;</seg> - <seg>&util-linux-ng-ch6-du;</seg> - </seglistitem> - </segmentedlist> - - </sect2> - - <sect2 role="installation"> - <title>FHS compliance notes - - The FHS recommends using the /var/lib/hwclock directory instead of the - usual /etc directory as the - location for the adjtime file. To make the - hwclock program FHS-compliant, run the - following: - -sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \ - -i $(grep -rl '/etc/adjtime' .) -mkdir -pv /var/lib/hwclock - - - - - Installation of Util-linux-ng - -./configure --enable-arch --enable-partx --enable-write - - - The meaning of the configure options: - - - --enable-arch - - Enables building the arch program - - - - --enable-partx - - Enables building the addpart, - delpart and partx - programs - - - - --enable-write - - Enables building the write program - - - - - - Compile the package: - -make - - This package does not come with a test suite. - - Install the package: - -make install - - - - - Contents of Util-linux-ng - - - Installed programs - Installed libraries - Installed directories - - - addpart, agetty, arch, blkid, blockdev, cal, cfdisk, chkdupexe, - chrt, col, colcrt, colrm, column, ctrlaltdel, cytune, ddate, delpart, - dmesg, fallocate, fdformat, fdisk, findfs, findmnt, flock, fsck, - fsck.cramfs, fsck.minix, fsfreeze, getopt, hexdump, hwclock, i386, - ionice, ipcmk, ipcrm, ipcs, isosize, ldattach, line, linux32, linux64, - logger, look, losetup, lscpu, mcookie, mkfs, mkfs.bfs, mkfs.cramfs, - mkfs.minix, mkswap, more, mount, namei, partx, pg, pivot_root, - readprofile, rename, renice, rev, rtcwake, script, scriptreplay, - setarch, setsid, setterm, sfdisk, swaplabel, swapoff (link to swapon), - swapon, switch_root, tailf, taskset, tunelp, ul, umount, unshare, - uuidd, uuidgen, wall, whereis, wipefs, and write - libblkid.{a,so}, libmount.{a,so}, libuuid.{a,so} - /usr/share/getopt, /var/lib/hwclock - - - - - Short Descriptions - - - - - addpart - - Informs the Linux kernel of new partitions - - addpart - - - - - - agetty - - Opens a tty port, prompts for a login name, - and then invokes the login program - - agetty - - - - - - arch - - Reports the machine's architecture - - arch - - - - - - blkid - - A command line utility to locate and print block device - attributes - - blkid - - - - - - blockdev - - Allows users to call block device ioctls from the command - line - - blockdev - - - - - - cal - - Displays a simple calendar - - cal - - - - - - cfdisk - - Manipulates the partition table of the given device - - cfdisk - - - - - - chkdupexe - - Finds duplicate executables - - chkdupexe - - - - - - chrt - - Manipulates real-time attributes of a process - - chrt - - - - - - col - - Filters out reverse line feeds - - col - - - - - - colcrt - - Filters nroff output for terminals - that lack some capabilities, such as overstriking and half-lines - - colcrt - - - - - - colrm - - Filters out the given columns - - colrm - - - - - - column - - Formats a given file into multiple columns - - column - - - - - - ctrlaltdel - - Sets the function of the Ctrl+Alt+Del key combination to a - hard or a soft reset - - ctrlaltdel - - - - - - cytune - - Tunes the parameters of the serial line drivers for - Cyclades cards - - cytune - - - - - - ddate - - Gives the Discordian date or converts the given Gregorian date - to a Discordian one - - ddate - - - - - - delpart - - Asks the Linux kernel to remove a partition - - delpart - - - - - - dmesg - - Dumps the kernel boot messages - - dmesg - - - - - - fallocate - - Preallocates space to a file - - fallocate - - - - - - fdformat - - Low-level formats a floppy disk - - fdformat - - - - - - fdisk - - Manipulates the paritition table of the given device - - fdisk - - - - - - findfs - - Finds a file system by label or Universally Unique Identifier - (UUID) - - findfs - - - - - - findmnt - - Is a command line interface to the libmount library - for work with mountinfo, fstab and mtab files - - findmnt - - - - - - flock - - Acquires a file lock and then executes a command with the lock - held - - flock - - - - - - fsck - - Is used to check, and optionally repair, file systems - - fsck - - - - - - fsck.cramfs - - Performs a consistency check on the Cramfs file system on the - given device - - fsck.cramfs - - - - - - fsck.minix - - Performs a consistency check on the Minix file system on the - given device - - fsck.minix - - - - - - fsfreeze - - Is a very simple wrapper around FIFREEZE/FITHAW ioctl - kernel driver operations - - fsfreeze - - - - - - getopt - - Parses options in the given command line - - getopt - - - - - - hexdump - - Dumps the given file in hexadecimal or in another given - format - - hexdump - - - - - - hwclock - - Reads or sets the system's hardware clock, also called - the Real-Time Clock (RTC) or Basic Input-Output System (BIOS) - clock - - hwclock - - - - - - i386 - - A symbolic link to setarch - - i386 - - - - - - ionice - - Gets or sets the io scheduling class and priority for a program - - ionice - - - - - - ipcmk - - Creates various IPC resources - - ipcmk - - - - - - ipcrm - - Removes the given Inter-Process Communication (IPC) resource - - ipcrm - - - - - - ipcs - - Provides IPC status information - - ipcs - - - - - - isosize - - Reports the size of an iso9660 file system - - isosize - - - - - - ldattach - - Attaches a line discipline to a serial line - - ldattach - - - - - - line - - Copies a single line - - line - - - - - - linux32 - - A symbolic link to setarch - - linux32 - - - - - - linux64 - - A symbolic link to setarch - - linux64 - - - - - - logger - - Enters the given message into the system log - - logger - - - - - - look - - Displays lines that begin with the given string - - look - - - - - - losetup - - Sets up and controls loop devices - - losetup - - - - - - lscpu - - Prints CPU architechture information - - lscpu - - - - - - mcookie - - Generates magic cookies (128-bit random hexadecimal numbers) for - xauth - - mcookie - - - - - - mkfs - - Builds a file system on a device (usually a hard disk - partition) - - mkfs - - - - - - mkfs.bfs - - Creates a Santa Cruz Operations (SCO) bfs file system - - mkfs.bfs - - - - - - mkfs.cramfs - - Creates a cramfs file system - - mkfs.cramfs - - - - - - mkfs.minix - - Creates a Minix file system - - mkfs.minix - - - - - - mkswap - - Initializes the given device or file to be used as a swap - area - - mkswap - - - - - - more - - A filter for paging through text one screen at a time - - more - - - - - - mount - - Attaches the file system on the given device to a specified - directory in the file-system tree - - mount - - - - - - namei - - Shows the symbolic links in the given pathnames - - namei - - - - - - partx - - Tells the kernel about the presence and numbering of on-disk - partitions - - partx - - - - - - pg - - Displays a text file one screen full at a time - - pg - - - - - - pivot_root - - Makes the given file system the new root file system of the - current process - - pivot_root - - - - - - readprofile - - Reads kernel profiling information - - readprofile - - - - - - rename - - Renames the given files, replacing a given string with - another - - rename - - - - - - renice - - Alters the priority of running processes - - renice - - - - - - rev - - Reverses the lines of a given file - - rev - - - - - - rtcwake - - Used to enter a system sleep state until specified wakeup - time - - rtcwake - - - - - - script - - Makes a typescript of a terminal session - - script - - - - - - scriptreplay - - Plays back typescripts using timing information - - scriptreplay - - - - - - setarch - - Changes reported architecture in a new program environment and - sets personality flags - - setarch - - - - - - setsid - - Runs the given program in a new session - - setsid - - - - - - setterm - - Sets terminal attributes - - setterm - - - - - - sfdisk - - A disk partition table manipulator - - sfdisk - - - - - - swaplabel - - Allows to change swaparea UUID and label - - swaplabel - - - - - - swapoff - - Disables devices and files for paging and swapping - - swapoff - - - - - - swapon - - Enables devices and files for paging and swapping and - lists the devices and files currently in use - - swapon - - - - - - switch_root - - Switches to another filesystem as the root of the mount tree - - switch_root - - - - - - tailf - - Tracks the growth of a log file. Displays the last 10 lines - of a log file, then continues displaying any new entries in the - log file as they are created - - tailf - - - - - - taskset - - Retrieves or sets a process' CPU affinity - - taskset - - - - - - tunelp - - Tunes the parameters of the line printer - - tunelp - - - - - - ul - - A filter for translating underscores into escape sequences - indicating underlining for the terminal in use - - ul - - - - - - umount - - Disconnects a file system from the system's file tree - - umount - - - - - - unshare - - Runs a program with some namespaces unshared from parent - - unshare - - - - - - uuidd - - A daemon used by the UUID library to generate time-based - UUIDs in a secure and guranteed-unique fashion. - - uuidd - - - - - - uuidgen - - Creates new UUIDs. Each new UUID can reasonably be considered - unique among all UUIDs created, on the local system and on other - systems, in the past and in the future - - uuidgen - - - - - - wall - - Displays the contents of a file or, by default, its standard - input, on the terminals of all currently logged in users - - wall - - - - - - whereis - - Reports the location of the binary, source, and man page - for the given command - - whereis - - - - - - wipefs - - Wipes a filesystem signature from a device - - wipefs - - - - - - write - - Sends a message to the given user if that - user has not disabled receipt of such messages - - write - - - - - - libblkid - - Contains routines for device identification and token - extraction - - libblkid - - - - - - libuuid - - Contains routines for generating unique identifiers for objects - that may be accessible beyond the local system - - libuuid - - - - - - - - -
diff --git a/chapter06/util-linux.xml b/chapter06/util-linux.xml new file mode 100644 index 000000000..43c8b47ae --- /dev/null +++ b/chapter06/util-linux.xml @@ -0,0 +1,1053 @@ + + + %general-entities; +]> + + + + + + util-linux + &util-linux-version; +
&util-linux-url;
+
+ + Util-linux-&util-linux-version; + + + Util-linux + + + + + + <para>The Util-linux package contains miscellaneous utility programs. + Among them are utilities for handling file systems, consoles, partitions, + and messages.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&util-linux-ch6-sbu;</seg> + <seg>&util-linux-ch6-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>FHS compliance notes + + The FHS recommends using the /var/lib/hwclock directory instead of the + usual /etc directory as the + location for the adjtime file. To make the + hwclock program FHS-compliant, run the + following: + +sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \ + -i $(grep -rl '/etc/adjtime' .) +mkdir -pv /var/lib/hwclock + + + + + Installation of Util-linux + +./configure --enable-arch --enable-partx --enable-write + + + The meaning of the configure options: + + + --enable-arch + + Enables building the arch program + + + + --enable-partx + + Enables building the addpart, + delpart and partx + programs + + + + --enable-write + + Enables building the write program + + + + + + Compile the package: + +make + + This package does not come with a test suite. + + Install the package: + +make install + + + + + Contents of Util-linux + + + Installed programs + Installed libraries + Installed directories + + + addpart, agetty, arch, blkid, blockdev, cal, cfdisk, chkdupexe, + chrt, col, colcrt, colrm, column, ctrlaltdel, cytune, ddate, delpart, + dmesg, fallocate, fdformat, fdisk, findfs, findmnt, flock, fsck, + fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hexdump, hwclock, i386, + ionice, ipcmk, ipcrm, ipcs, isosize, ldattach, line, linux32, linux64, + logger, look, losetup, lsblk, lscpu, mcookie, mkfs, mkfs.bfs, mkfs.cramfs, + mkfs.minix, mkswap, more, mount, namei, partx, pg, pivot_root, + readprofile, rename, renice, rev, rtcwake, script, scriptreplay, + setarch, setsid, setterm, sfdisk, swaplabel, swapoff (link to swapon), + swapon, switch_root, tailf, taskset, tunelp, ul, umount, unshare, + uuidd, uuidgen, wall, whereis, wipefs, and write + libblkid.{a,so}, libmount.{a,so}, libuuid.{a,so} + /usr/share/getopt, /var/lib/hwclock + + + + + Short Descriptions + + + + + addpart + + Informs the Linux kernel of new partitions + + addpart + + + + + + agetty + + Opens a tty port, prompts for a login name, + and then invokes the login program + + agetty + + + + + + arch + + Reports the machine's architecture + + arch + + + + + + blkid + + A command line utility to locate and print block device + attributes + + blkid + + + + + + blockdev + + Allows users to call block device ioctls from the command + line + + blockdev + + + + + + cal + + Displays a simple calendar + + cal + + + + + + cfdisk + + Manipulates the partition table of the given device + + cfdisk + + + + + + chkdupexe + + Finds duplicate executables + + chkdupexe + + + + + + chrt + + Manipulates real-time attributes of a process + + chrt + + + + + + col + + Filters out reverse line feeds + + col + + + + + + colcrt + + Filters nroff output for terminals + that lack some capabilities, such as overstriking and half-lines + + colcrt + + + + + + colrm + + Filters out the given columns + + colrm + + + + + + column + + Formats a given file into multiple columns + + column + + + + + + ctrlaltdel + + Sets the function of the Ctrl+Alt+Del key combination to a + hard or a soft reset + + ctrlaltdel + + + + + + cytune + + Tunes the parameters of the serial line drivers for + Cyclades cards + + cytune + + + + + + ddate + + Gives the Discordian date or converts the given Gregorian date + to a Discordian one + + ddate + + + + + + delpart + + Asks the Linux kernel to remove a partition + + delpart + + + + + + dmesg + + Dumps the kernel boot messages + + dmesg + + + + + + fallocate + + Preallocates space to a file + + fallocate + + + + + + fdformat + + Low-level formats a floppy disk + + fdformat + + + + + + fdisk + + Manipulates the paritition table of the given device + + fdisk + + + + + + findfs + + Finds a file system by label or Universally Unique Identifier + (UUID) + + findfs + + + + + + findmnt + + Is a command line interface to the libmount library + for work with mountinfo, fstab and mtab files + + findmnt + + + + + + flock + + Acquires a file lock and then executes a command with the lock + held + + flock + + + + + + fsck + + Is used to check, and optionally repair, file systems + + fsck + + + + + + fsck.cramfs + + Performs a consistency check on the Cramfs file system on the + given device + + fsck.cramfs + + + + + + fsck.minix + + Performs a consistency check on the Minix file system on the + given device + + fsck.minix + + + + + + fsfreeze + + Is a very simple wrapper around FIFREEZE/FITHAW ioctl + kernel driver operations + + fsfreeze + + + + + + fstrim + + Discards unused blocks on a mounted filesystem + + fstrim + + + + + + getopt + + Parses options in the given command line + + getopt + + + + + + hexdump + + Dumps the given file in hexadecimal or in another given + format + + hexdump + + + + + + hwclock + + Reads or sets the system's hardware clock, also called + the Real-Time Clock (RTC) or Basic Input-Output System (BIOS) + clock + + hwclock + + + + + + i386 + + A symbolic link to setarch + + i386 + + + + + + ionice + + Gets or sets the io scheduling class and priority for a program + + ionice + + + + + + ipcmk + + Creates various IPC resources + + ipcmk + + + + + + ipcrm + + Removes the given Inter-Process Communication (IPC) resource + + ipcrm + + + + + + ipcs + + Provides IPC status information + + ipcs + + + + + + isosize + + Reports the size of an iso9660 file system + + isosize + + + + + + ldattach + + Attaches a line discipline to a serial line + + ldattach + + + + + + line + + Copies a single line + + line + + + + + + linux32 + + A symbolic link to setarch + + linux32 + + + + + + linux64 + + A symbolic link to setarch + + linux64 + + + + + + logger + + Enters the given message into the system log + + logger + + + + + + look + + Displays lines that begin with the given string + + look + + + + + + losetup + + Sets up and controls loop devices + + losetup + + + + + + lsblk + + Lists information about all or selected block devices in + a tree-like format. + + lsblk + + + + + + lscpu + + Prints CPU architechture information + + lscpu + + + + + + mcookie + + Generates magic cookies (128-bit random hexadecimal numbers) for + xauth + + mcookie + + + + + + mkfs + + Builds a file system on a device (usually a hard disk + partition) + + mkfs + + + + + + mkfs.bfs + + Creates a Santa Cruz Operations (SCO) bfs file system + + mkfs.bfs + + + + + + mkfs.cramfs + + Creates a cramfs file system + + mkfs.cramfs + + + + + + mkfs.minix + + Creates a Minix file system + + mkfs.minix + + + + + + mkswap + + Initializes the given device or file to be used as a swap + area + + mkswap + + + + + + more + + A filter for paging through text one screen at a time + + more + + + + + + mount + + Attaches the file system on the given device to a specified + directory in the file-system tree + + mount + + + + + + namei + + Shows the symbolic links in the given pathnames + + namei + + + + + + partx + + Tells the kernel about the presence and numbering of on-disk + partitions + + partx + + + + + + pg + + Displays a text file one screen full at a time + + pg + + + + + + pivot_root + + Makes the given file system the new root file system of the + current process + + pivot_root + + + + + + readprofile + + Reads kernel profiling information + + readprofile + + + + + + rename + + Renames the given files, replacing a given string with + another + + rename + + + + + + renice + + Alters the priority of running processes + + renice + + + + + + rev + + Reverses the lines of a given file + + rev + + + + + + rtcwake + + Used to enter a system sleep state until specified wakeup + time + + rtcwake + + + + + + script + + Makes a typescript of a terminal session + + script + + + + + + scriptreplay + + Plays back typescripts using timing information + + scriptreplay + + + + + + setarch + + Changes reported architecture in a new program environment and + sets personality flags + + setarch + + + + + + setsid + + Runs the given program in a new session + + setsid + + + + + + setterm + + Sets terminal attributes + + setterm + + + + + + sfdisk + + A disk partition table manipulator + + sfdisk + + + + + + swaplabel + + Allows to change swaparea UUID and label + + swaplabel + + + + + + swapoff + + Disables devices and files for paging and swapping + + swapoff + + + + + + swapon + + Enables devices and files for paging and swapping and + lists the devices and files currently in use + + swapon + + + + + + switch_root + + Switches to another filesystem as the root of the mount tree + + switch_root + + + + + + tailf + + Tracks the growth of a log file. Displays the last 10 lines + of a log file, then continues displaying any new entries in the + log file as they are created + + tailf + + + + + + taskset + + Retrieves or sets a process' CPU affinity + + taskset + + + + + + tunelp + + Tunes the parameters of the line printer + + tunelp + + + + + + ul + + A filter for translating underscores into escape sequences + indicating underlining for the terminal in use + + ul + + + + + + umount + + Disconnects a file system from the system's file tree + + umount + + + + + + unshare + + Runs a program with some namespaces unshared from parent + + unshare + + + + + + uuidd + + A daemon used by the UUID library to generate time-based + UUIDs in a secure and guranteed-unique fashion. + + uuidd + + + + + + uuidgen + + Creates new UUIDs. Each new UUID can reasonably be considered + unique among all UUIDs created, on the local system and on other + systems, in the past and in the future + + uuidgen + + + + + + wall + + Displays the contents of a file or, by default, its standard + input, on the terminals of all currently logged in users + + wall + + + + + + whereis + + Reports the location of the binary, source, and man page + for the given command + + whereis + + + + + + wipefs + + Wipes a filesystem signature from a device + + wipefs + + + + + + write + + Sends a message to the given user if that + user has not disabled receipt of such messages + + write + + + + + + libblkid + + Contains routines for device identification and token + extraction + + libblkid + + + + + + libuuid + + Contains routines for generating unique identifiers for objects + that may be accessible beyond the local system + + libuuid + + + + + + + + +
-- cgit v1.2.3-54-g00ecf