Tagging 1.99.1
[linux_from_scratch.git] / BOOK / chapter06 / findutils.xml
blob8f7e5d6a2d68b4c613cff83a9b4a7f47f4c5b8b4
1 <sect1 id="ch-system-findutils" xreflabel="Findutils">
2 <title>Installing Findutils-&findutils-version;</title>
3 <?dbhtml filename="findutils.html" dir="chapter06"?>
5 <para>The Findutils package contains programs to find files. The finding is
6 done either by doing a live recursive search through a directory tree, or by
7 consulting a previously set up database.</para>
9 <screen>&buildtime; &findutils-time;
10 &diskspace; &findutils-compsize;</screen>
12 &aa-findutils-down;
13 &aa-findutils-dep;
15 <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
17 <sect2>
18 <title>Installation of Findutils</title>
20 <para>Prepare Findutils for compilation:</para>
22 <screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/locate</userinput></screen>
24 <para>The default location for the <emphasis>locate</emphasis> database is
25 <filename>/usr/var</filename>. To make the location of this database
26 FHS-compliant, add <emphasis>--localstatedir=/var/lib/misc</emphasis>
27 to the above configure options.</para>
29 <para>Compile the package:</para>
31 <screen><userinput>make</userinput></screen>
33 <para>This package has a test suite available which can perform a number of
34 checks to ensure it built correctly.  Should you choose to run it, the 
35 following command will do so:</para>
37 <screen><userinput>make check</userinput></screen>
39 <para>And install the package:</para>
41 <screen><userinput>make install</userinput></screen>
43 </sect2>
45 &aa-findutils-shortdesc;
46 &aa-findutils-desc;
48 </sect1>