source: chapter08/findutils.xml@ b08c451

multilib
Last change on this file since b08c451 was f08c6def, checked in by Thomas Trepl <thomas@…>, 2 years ago

Fix issue building findutils on a 32bit system

  • Property mode set to 100644
File size: 4.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-findutils" role="wrap">
9 <?dbhtml filename="findutils.html"?>
10
11 <sect1info condition="script">
12 <productname>findutils</productname>
13 <productnumber>&findutils-version;</productnumber>
14 <address>&findutils-url;</address>
15 </sect1info>
16
17 <title>Findutils-&findutils-version;</title>
18
19 <indexterm zone="ch-system-findutils">
20 <primary sortas="a-Findutils">Findutils</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Findutils package contains programs to find files. These programs
27 are provided to recursively search through a directory tree and to
28 create, maintain, and search a database (often faster than the recursive
29 find, but is unreliable if the database has not been recently updated).</para>
30
31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
34
35 <seglistitem>
36 <seg>&findutils-fin-sbu;</seg>
37 <seg>&findutils-fin-du;</seg>
38 </seglistitem>
39 </segmentedlist>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Findutils</title>
45
46 <para>Prepare Findutils for compilation:</para>
47
48<screen><userinput remap="configure">case $(uname -m) in
49 i?86) TIME_T_32_BIT_OK=yes ./configure --prefix=/usr --localstatedir=/var/lib/locate ;;
50 x86_64) ./configure --prefix=/usr --localstatedir=/var/lib/locate ;;
51esac</userinput></screen>
52
53 <variablelist>
54 <title>The meaning of the configure options:</title>
55
56 <varlistentry>
57 <term><parameter>--localstatedir</parameter></term>
58 <listitem>
59 <para>This option changes the location of the <command>locate</command>
60 database to be in <filename class="directory">/var/lib/locate</filename>,
61 which is FHS-compliant.</para>
62 </listitem>
63 </varlistentry>
64
65 </variablelist>
66
67 <para>Compile the package:</para>
68
69<screen><userinput remap="make">make</userinput></screen>
70
71 <para>To test the results, issue:</para>
72
73<screen><userinput remap="test">chown -Rv tester .
74su tester -c "PATH=$PATH make check"</userinput></screen>
75
76 <para>Install the package:</para>
77
78<screen><userinput remap="install">make install</userinput></screen>
79
80 </sect2>
81
82 <sect2 id="contents-findutils" role="content">
83 <title>Contents of Findutils</title>
84
85 <segmentedlist>
86 <segtitle>Installed programs</segtitle>
87 <segtitle>Installed directory</segtitle>
88
89 <seglistitem>
90 <seg>find, locate, updatedb, and xargs</seg>
91 <seg>/var/lib/locate</seg>
92 </seglistitem>
93
94 </segmentedlist>
95
96 <variablelist>
97 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
98 <?dbfo list-presentation="list"?>
99 <?dbhtml list-presentation="table"?>
100
101 <varlistentry id="find">
102 <term><command>find</command></term>
103 <listitem>
104 <para>Searches given directory trees for files matching the specified
105 criteria</para>
106 <indexterm zone="ch-system-findutils find">
107 <primary sortas="b-find">find</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
112 <varlistentry id="locate">
113 <term><command>locate</command></term>
114 <listitem>
115 <para>Searches through a database of file names and reports the names
116 that contain a given string or match a given pattern</para>
117 <indexterm zone="ch-system-findutils locate">
118 <primary sortas="b-locate">locate</primary>
119 </indexterm>
120 </listitem>
121 </varlistentry>
122
123 <varlistentry id="updatedb">
124 <term><command>updatedb</command></term>
125 <listitem>
126 <para>Updates the <command>locate</command> database; it scans the
127 entire file system (including other file systems that are currently
128 mounted, unless told not to) and puts every file name it finds into
129 the database</para>
130 <indexterm zone="ch-system-findutils updatedb">
131 <primary sortas="b-updatedb">updatedb</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
136 <varlistentry id="xargs">
137 <term><command>xargs</command></term>
138 <listitem>
139 <para>Can be used to apply a given command to a list of files</para>
140 <indexterm zone="ch-system-findutils xargs">
141 <primary sortas="b-xargs">xargs</primary>
142 </indexterm>
143 </listitem>
144 </varlistentry>
145
146 </variablelist>
147
148 </sect2>
149
150</sect1>
Note: See TracBrowser for help on using the repository browser.