utillinux.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <sect1 id="ch06-util-linux" xreflabel="Util-linux">
  2. <title>Installing Util-linux-&util-linux-version;</title>
  3. <?dbhtml filename="util-linux.html" dir="chapter06"?>
  4. <para>The Util-linux package contains miscellaneous utility programs. Among
  5. them are utilities for handling filesystems, consoles, partitions, and
  6. messages.</para>
  7. <screen>&buildtime; &util-linux-time;
  8. &diskspace; &util-linux-compsize;</screen>
  9. &aa-utillinux-down;
  10. &aa-utillinux-dep;
  11. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  12. <sect2>
  13. <title>FHS compliance notes</title>
  14. <para>The FHS recommends that we use <filename>/var/lib/hwclock</filename>,
  15. instead of the usual <filename>/etc</filename>, as the location for the
  16. <filename>adjtime</filename> file. To make the <userinput>hwclock</userinput>
  17. program FHS-compliant, run the following:</para>
  18. <screen><userinput>cp hwclock/hwclock.c{,.backup}
  19. sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
  20. &nbsp;&nbsp;&nbsp;&nbsp;hwclock/hwclock.c.backup &gt; hwclock/hwclock.c
  21. mkdir -p /var/lib/hwclock</userinput></screen>
  22. </sect2>
  23. <sect2>
  24. <title>Installation of Util-linux</title>
  25. <para>Prepare Util-linux for compilation:</para>
  26. <screen><userinput>./configure</userinput></screen>
  27. <para>Compile the package:</para>
  28. <screen><userinput>make HAVE_KILL=yes HAVE_SLN=yes</userinput></screen>
  29. <para>The meaning of the make parameters:</para>
  30. <itemizedlist>
  31. <listitem><para><userinput>HAVE_KILL=yes</userinput>: This prevents the
  32. <userinput>kill</userinput> program (already installed by Procps) from being
  33. built and installed again.</para></listitem>
  34. <listitem><para><userinput>HAVE_SLN=yes</userinput>: This prevents the
  35. <userinput>sln</userinput> program (a statically linked
  36. <userinput>ln</userinput>, already installed by Glibc) from being built and
  37. installed again.</para></listitem>
  38. </itemizedlist>
  39. <para>And install the package:</para>
  40. <screen><userinput>make HAVE_KILL=yes HAVE_SLN=yes install</userinput></screen>
  41. </sect2>
  42. &aa-utillinux-shortdesc;
  43. &aa-utillinux-desc;
  44. </sect1>