source: BOOK/final-system/common/findutils.xml@ de4abd5

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since de4abd5 was 61ad0b7f, checked in by Chris Staub <chris@…>, 15 years ago

Added installed directory info for a number of packages

  • Property mode set to 100644
File size: 6.3 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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 <title>Findutils-&findutils-version;</title>
12
13 <indexterm zone="ch-system-findutils">
14 <primary sortas="a-Findutils">Findutils</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Findutils package contains programs to find files. These programs
21 are provided to recursively search through a directory tree and to
22 create, maintain, and search a database (often faster than the recursive
23 find, but unreliable if the database has not been recently updated).</para>
24
25 </sect2>
26
27 <sect2 role="installation">
28 <title>Installation of Findutils</title>
29
30 <para os="a">Prepare Findutils for compilation:</para>
31
[e0e40d3]32<screen os="b"><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/locate \
[3f8be484]33 --localstatedir=/var/lib/locate</userinput></screen>
34
[e0e40d3]35 <variablelist os="c">
[3f8be484]36 <title>The meaning of the configure options:</title>
37
38 <varlistentry>
39 <term><parameter>--localstatedir</parameter></term>
40 <listitem>
41 <para>This option changes the location of the <command>locate</command>
42 database to be in <filename class="directory">/var/lib/locate</filename>,
43 which is FHS-compliant.</para>
44 </listitem>
45 </varlistentry>
46
47 </variablelist>
48
[e0e40d3]49 <para os="d">Compile the package:</para>
[3f8be484]50
[e0e40d3]51<screen os="e"><userinput>make</userinput></screen>
[3f8be484]52
[e0e40d3]53 <para os="f">To test the results, issue:
[3f8be484]54 <userinput>make check</userinput>.</para>
55
[e0e40d3]56 <para os="g">Install the package:</para>
[3f8be484]57
[e0e40d3]58<screen os="h"><userinput>make install</userinput></screen>
[3f8be484]59
[040521bc]60 <para os="i">The <command>find</command> program is used by some of the scripts
[e990cbd9]61 in the CLFS-Bootscripts package. As <filename
62 class="directory">/usr</filename> may not be available during the early
[807f5e5]63 stages of booting, the <command>find</command> binary needs to be on
64 the root partition:</para>
[e990cbd9]65
[fcdaf47]66<screen os="j"><userinput>mv -v /usr/bin/find /bin</userinput></screen>
[e990cbd9]67
[807f5e5]68 <para os="k">The <command>updatedb</command> script needs to be modified
69 to point to the new location for <command>find</command>:</para>
70
71<screen os="l"><userinput>sed -i 's@find:=${BINDIR}@find:=/bin@' /usr/bin/updatedb</userinput></screen>
72
[3f8be484]73 </sect2>
74
75 <sect2 id="contents-findutils" role="content">
76 <title>Contents of Findutils</title>
77
78 <segmentedlist>
79 <segtitle>Installed programs</segtitle>
[61ad0b7f]80 <segtitle>Installed directory</segtitle>
[3f8be484]81
82 <seglistitem>
[427015f]83 <seg>bigram, code, find, frcode, locate, oldfind, updatedb, and xargs</seg>
[61ad0b7f]84 <seg>/usr/lib/locate</seg>
[3f8be484]85 </seglistitem>
86 </segmentedlist>
87
88 <variablelist>
89 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
90 <?dbfo list-presentation="list"?>
91 <?dbhtml list-presentation="table"?>
92
93 <varlistentry id="bigram">
94 <term><command>bigram</command></term>
95 <listitem>
96 <para>Was formerly used to produce <command>locate</command>
97 databases</para>
98 <indexterm zone="ch-system-findutils bigram">
99 <primary sortas="b-bigram">bigram</primary>
100 </indexterm>
101 </listitem>
102 </varlistentry>
103
104 <varlistentry id="code">
105 <term><command>code</command></term>
106 <listitem>
107 <para>Was formerly used to produce <command>locate</command>
108 databases; it is the ancestor of <command>frcode</command>.</para>
109 <indexterm zone="ch-system-findutils code">
110 <primary sortas="b-code">code</primary>
111 </indexterm>
112 </listitem>
113 </varlistentry>
114
115 <varlistentry id="find">
116 <term><command>find</command></term>
117 <listitem>
118 <para>Searches given directory trees for files matching the specified
119 criteria</para>
120 <indexterm zone="ch-system-findutils find">
121 <primary sortas="b-find">find</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry id="frcode">
127 <term><command>frcode</command></term>
128 <listitem>
129 <para>Is called by <command>updatedb</command> to compress the list
130 of file names; it uses front-compression, reducing the database size
131 by a factor of four to five.</para>
132 <indexterm zone="ch-system-findutils frcode">
133 <primary sortas="b-frcode">frcode</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
138 <varlistentry id="locate">
139 <term><command>locate</command></term>
140 <listitem>
141 <para>Searches through a database of file names and reports the names
142 that contain a given string or match a given pattern</para>
143 <indexterm zone="ch-system-findutils locate">
144 <primary sortas="b-locate">locate</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
[427015f]149 <varlistentry id="oldfind">
150 <term><command>oldfind</command></term>
151 <listitem>
[653cf49]152 <para>Older version of find, using a different algorithm</para>
[427015f]153 <indexterm zone="ch-system-findutils oldfind">
154 <primary sortas="b-oldfind">oldfind</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
[3f8be484]159 <varlistentry id="updatedb">
160 <term><command>updatedb</command></term>
161 <listitem>
162 <para>Updates the <command>locate</command> database; it scans the
163 entire file system (including other file systems that are currently
164 mounted, unless told not to) and puts every file name it finds into
165 the database</para>
166 <indexterm zone="ch-system-findutils updatedb">
167 <primary sortas="b-updatedb">updatedb</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="xargs">
173 <term><command>xargs</command></term>
174 <listitem>
175 <para>Can be used to apply a given command to a list of files</para>
176 <indexterm zone="ch-system-findutils xargs">
177 <primary sortas="b-xargs">xargs</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 </variablelist>
183
184 </sect2>
185
186</sect1>
Note: See TracBrowser for help on using the repository browser.