%general-entities; ]> util-linux &util-linux-version;
&util-linux-url;
Util-linux-&util-linux-version; Util-linux tools <para>The Util-linux package contains miscellaneous utility programs.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>&util-linux-tmp-sbu;</seg> <seg>&util-linux-tmp-du;</seg> </seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Util-linux The FHS recommends using the /var/lib/hwclock directory instead of the usual /etc directory as the location for the adjtime file. Create this directory with: mkdir -pv /var/lib/hwclock Prepare Util-linux for compilation: ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ --libdir=/usr/lib \ --docdir=/usr/share/doc/util-linux-&util-linux-version; \ --disable-chfn-chsh \ --disable-login \ --disable-nologin \ --disable-su \ --disable-setpriv \ --disable-runuser \ --disable-pylibmount \ --disable-static \ --without-python \ runstatedir=/run The meaning of the configure options: ADJTIME_PATH=/var/lib/hwclock/adjtime This sets the location of the file recording information about the hardware clock in accordance to the FHS. This is not strictly needed for this temporary tool, but it prevents creating a file at another location, which would not be overwritten or removed when building the final util-linux package. --libdir=/usr/lib This switch ensures the .so symlinks targeting the shared library file in the same directory (/usr/lib) directly. --disable-* These switches prevent warnings about building components that require packages not in LFS or not installed yet. --without-python This switch disables using Python. It avoids trying to build unneeded bindings. runstatedir=/run This switch sets the location of the socket used by uuidd and libuuid correctly. Compile the package: make Install the package: make install Installation of Util-linux - 32-bit Clean previous build: make distclean Prepare Util-linux for compilation: CC="gcc -m32" \ ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ --docdir=/usr/share/doc/util-linux-&util-linux-version; \ --disable-chfn-chsh \ --disable-login \ --disable-nologin \ --disable-su \ --disable-setpriv \ --disable-runuser \ --disable-pylibmount \ --disable-static \ --without-python \ --libdir=/usr/lib32 \ --host=i686-pc-linux-gnu Compile the package: make Install the package: make DESTDIR=$PWD/DESTDIR install cp -Rv DESTDIR/usr/lib32/* /usr/lib32 rm -rf DESTDIR Installation of Util-linux - x32-bit Clean previous build: make distclean Prepare Util-linux for compilation: CC="gcc -mx32" \ ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ --docdir=/usr/share/doc/util-linux-&util-linux-version; \ --disable-chfn-chsh \ --disable-login \ --disable-nologin \ --disable-su \ --disable-setpriv \ --disable-runuser \ --disable-pylibmount \ --disable-static \ --without-python \ --libdir=/usr/libx32 \ --host=x86_64-pc-linux-gnux32 Compile the package: make Install the package: make DESTDIR=$PWD/DESTDIR install cp -Rv DESTDIR/usr/libx32/* /usr/libx32 rm -rf DESTDIR <para>Details on this package are located in <xref linkend="contents-utillinux" role="."/></para> </sect2> </sect1>