aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/findutils-inst.xml
blob: b3268659571610ca481d82359c17ddc0d2c9b4ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<sect2>
<title>Installing Findutils</title>

<para>This package requires its patch to be applied before you can
install it. Make sure it's unpacked before running the installation 
commands.</para>

<para>Install Findutils by running the following commands:</para>

<para><screen><userinput>patch -Np1 -i ../findutils-&findutils-patch-version;.patch &amp;&amp;
./configure --prefix=/usr &amp;&amp;
make libexecdir=/usr/bin &amp;&amp;
make libexecdir=/usr/bin install</userinput></screen></para>

</sect2>
<sect2>
<title>FHS compliance notes</title>

<para>By default, the location of the updatedb database is in /usr/var.
If you would rather be FHS compliant, you may wish to use another
location.  The following commands use the database file 
<filename>/var/lib/misc/locatedb</filename> which is FHS compliant.</para>

<para><screen><userinput>patch -Np1 -i ../findutils-&findutils-patch-version;.patch &amp;&amp;
./configure --prefix=/usr &amp;&amp;
make localstatedir=/var/lib/misc libexecdir=/usr/bin &amp;&amp;
make localstatedir=/var/lib/misc libexecdir=/usr/bin install</userinput></screen></para>

</sect2>