source: chapter06/findutils.xml@ fe05b08

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since fe05b08 was fe05b08, checked in by Bruce Dubbs <bdubbs@…>, 14 years ago

Add installed directories information to
each package. Thanks to Chris Staub for the patch.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9285 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.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 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-ch6-sbu;</seg>
37 <seg>&findutils-ch6-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">./configure --prefix=/usr --libexecdir=/usr/lib/findutils \
49 --localstatedir=/var/lib/locate</userinput></screen>
50
51 <variablelist>
52 <title>The meaning of the configure options:</title>
53
54 <varlistentry>
55 <term><parameter>--localstatedir</parameter></term>
56 <listitem>
57 <para>This option changes the location of the <command>locate</command>
58 database to be in <filename class="directory">/var/lib/locate</filename>,
59 which is FHS-compliant.</para>
60 </listitem>
61 </varlistentry>
62
63 </variablelist>
64
65 <para>Compile the package:</para>
66
67<screen><userinput remap="make">make</userinput></screen>
68
69 <para>To test the results, issue:</para>
70
71<screen><userinput remap="test">make check</userinput></screen>
72
73 <para>Install the package:</para>
74
75<screen><userinput remap="install">make install</userinput></screen>
76
77 <para>Some of the scripts in the LFS-Bootscripts package depend on
78 <command>find</command>. As <filename class="directory">/usr</filename>
79 may not be available during the early stages of booting, this program
80 needs to be on the root partition. The <command>updatedb</command>
81 script also needs to be modified to correct an explicit path:</para>
82
83<screen><userinput remap="install">mv -v /usr/bin/find /bin
84sed -i 's/find:=${BINDIR}/find:=\/bin/' /usr/bin/updatedb</userinput></screen>
85
86 </sect2>
87
88 <sect2 id="contents-findutils" role="content">
89 <title>Contents of Findutils</title>
90
91 <segmentedlist>
92 <segtitle>Installed programs</segtitle>
93 <segtitle>Installed directory</segtitle>
94
95 <seglistitem>
96 <seg>bigram, code, find, frcode, locate, oldfind, updatedb, and xargs</seg>
97 <seg>/usr/lib/findutils</seg>
98 </seglistitem>
99 </segmentedlist>
100
101 <variablelist>
102 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
103 <?dbfo list-presentation="list"?>
104 <?dbhtml list-presentation="table"?>
105
106 <varlistentry id="bigram">
107 <term><command>bigram</command></term>
108 <listitem>
109 <para>Was formerly used to produce <command>locate</command>
110 databases</para>
111 <indexterm zone="ch-system-findutils bigram">
112 <primary sortas="b-bigram">bigram</primary>
113 </indexterm>
114 </listitem>
115 </varlistentry>
116
117 <varlistentry id="code">
118 <term><command>code</command></term>
119 <listitem>
120 <para>Was formerly used to produce <command>locate</command>
121 databases; it is the ancestor of <command>frcode</command>.</para>
122 <indexterm zone="ch-system-findutils code">
123 <primary sortas="b-code">code</primary>
124 </indexterm>
125 </listitem>
126 </varlistentry>
127
128 <varlistentry id="find">
129 <term><command>find</command></term>
130 <listitem>
131 <para>Searches given directory trees for files matching the specified
132 criteria</para>
133 <indexterm zone="ch-system-findutils find">
134 <primary sortas="b-find">find</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry id="frcode">
140 <term><command>frcode</command></term>
141 <listitem>
142 <para>Is called by <command>updatedb</command> to compress the list
143 of file names; it uses front-compression, reducing the database size
144 by a factor of four to five.</para>
145 <indexterm zone="ch-system-findutils frcode">
146 <primary sortas="b-frcode">frcode</primary>
147 </indexterm>
148 </listitem>
149 </varlistentry>
150
151 <varlistentry id="locate">
152 <term><command>locate</command></term>
153 <listitem>
154 <para>Searches through a database of file names and reports the names
155 that contain a given string or match a given pattern</para>
156 <indexterm zone="ch-system-findutils locate">
157 <primary sortas="b-locate">locate</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 <varlistentry id="oldfind">
163 <term><command>oldfind</command></term>
164 <listitem>
165 <para>Older version of find, using a different algorithm</para>
166 <indexterm zone="ch-system-findutils oldfind">
167 <primary sortas="b-oldfind">oldfind</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="updatedb">
173 <term><command>updatedb</command></term>
174 <listitem>
175 <para>Updates the <command>locate</command> database; it scans the
176 entire file system (including other file systems that are currently
177 mounted, unless told not to) and puts every file name it finds into
178 the database</para>
179 <indexterm zone="ch-system-findutils updatedb">
180 <primary sortas="b-updatedb">updatedb</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 <varlistentry id="xargs">
186 <term><command>xargs</command></term>
187 <listitem>
188 <para>Can be used to apply a given command to a list of files</para>
189 <indexterm zone="ch-system-findutils xargs">
190 <primary sortas="b-xargs">xargs</primary>
191 </indexterm>
192 </listitem>
193 </varlistentry>
194
195 </variablelist>
196
197 </sect2>
198
199</sect1>
Note: See TracBrowser for help on using the repository browser.