source: chapter06/findutils.xml@ f93ffe4

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 7.4 7.5 7.6 7.7 7.8 7.9 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 f93ffe4 was 9f5aaf7, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Add whitespace for better readability of instructions

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

  • Property mode set to 100644
File size: 6.7 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[54e422c1]7
[81fd230]8<sect1 id="ch-system-findutils" role="wrap">
[54e422c1]9 <?dbhtml filename="findutils.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>findutils</productname>
13 <productnumber>&findutils-version;</productnumber>
14 <address>&findutils-url;</address>
15 </sect1info>
16
[54e422c1]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/>
[6370fa6]25
[54e422c1]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>
[5888299]30
[54e422c1]31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
[673b0d8]34
[54e422c1]35 <seglistitem>
[e4a5635]36 <seg>&findutils-ch6-sbu;</seg>
37 <seg>&findutils-ch6-du;</seg>
[54e422c1]38 </seglistitem>
39 </segmentedlist>
[673b0d8]40
[54e422c1]41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Findutils</title>
45
46 <para>Prepare Findutils for compilation:</para>
[73aedd1d]47
[9f5aaf7]48<screen><userinput remap="configure">./configure --prefix=/usr \
49 --libexecdir=/usr/lib/findutils \
50 --localstatedir=/var/lib/locate</userinput></screen>
[73aedd1d]51
[54e422c1]52 <variablelist>
53 <title>The meaning of the configure options:</title>
[06948c1]54
[54e422c1]55 <varlistentry>
56 <term><parameter>--localstatedir</parameter></term>
57 <listitem>
58 <para>This option changes the location of the <command>locate</command>
59 database to be in <filename class="directory">/var/lib/locate</filename>,
60 which is FHS-compliant.</para>
61 </listitem>
62 </varlistentry>
[81fd230]63
[54e422c1]64 </variablelist>
65
66 <para>Compile the package:</para>
[73aedd1d]67
[0445a3d]68<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]69
[0445a3d]70 <para>To test the results, issue:</para>
71
72<screen><userinput remap="test">make check</userinput></screen>
[73aedd1d]73
[54e422c1]74 <para>Install the package:</para>
[73aedd1d]75
[0445a3d]76<screen><userinput remap="install">make install</userinput></screen>
[73aedd1d]77
[b540268]78 <para>Some of the scripts in the LFS-Bootscripts package depend on
79 <command>find</command>. As <filename class="directory">/usr</filename>
80 may not be available during the early stages of booting, this program
[491d4629]81 needs to be on the root partition. The <command>updatedb</command>
[e1060de]82 script also needs to be modified to correct an explicit path:</para>
[b540268]83
[0445a3d]84<screen><userinput remap="install">mv -v /usr/bin/find /bin
[c23c59f]85sed -i 's/find:=${BINDIR}/find:=\/bin/' /usr/bin/updatedb</userinput></screen>
[e1060de]86
[54e422c1]87 </sect2>
88
89 <sect2 id="contents-findutils" role="content">
90 <title>Contents of Findutils</title>
91
92 <segmentedlist>
93 <segtitle>Installed programs</segtitle>
[fe05b08]94 <segtitle>Installed directory</segtitle>
[54e422c1]95
96 <seglistitem>
[90aae6b]97 <seg>bigram, code, find, frcode, locate, oldfind, updatedb, and xargs</seg>
[fe05b08]98 <seg>/usr/lib/findutils</seg>
[54e422c1]99 </seglistitem>
100 </segmentedlist>
101
102 <variablelist>
103 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
104 <?dbfo list-presentation="list"?>
105 <?dbhtml list-presentation="table"?>
106
107 <varlistentry id="bigram">
108 <term><command>bigram</command></term>
109 <listitem>
110 <para>Was formerly used to produce <command>locate</command>
111 databases</para>
112 <indexterm zone="ch-system-findutils bigram">
113 <primary sortas="b-bigram">bigram</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
118 <varlistentry id="code">
119 <term><command>code</command></term>
120 <listitem>
121 <para>Was formerly used to produce <command>locate</command>
122 databases; it is the ancestor of <command>frcode</command>.</para>
123 <indexterm zone="ch-system-findutils code">
124 <primary sortas="b-code">code</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
129 <varlistentry id="find">
130 <term><command>find</command></term>
131 <listitem>
132 <para>Searches given directory trees for files matching the specified
133 criteria</para>
134 <indexterm zone="ch-system-findutils find">
135 <primary sortas="b-find">find</primary>
136 </indexterm>
137 </listitem>
138 </varlistentry>
139
140 <varlistentry id="frcode">
141 <term><command>frcode</command></term>
142 <listitem>
143 <para>Is called by <command>updatedb</command> to compress the list
144 of file names; it uses front-compression, reducing the database size
145 by a factor of four to five.</para>
146 <indexterm zone="ch-system-findutils frcode">
147 <primary sortas="b-frcode">frcode</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry id="locate">
153 <term><command>locate</command></term>
154 <listitem>
155 <para>Searches through a database of file names and reports the names
156 that contain a given string or match a given pattern</para>
157 <indexterm zone="ch-system-findutils locate">
158 <primary sortas="b-locate">locate</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
[90aae6b]163 <varlistentry id="oldfind">
164 <term><command>oldfind</command></term>
165 <listitem>
166 <para>Older version of find, using a different algorithm</para>
167 <indexterm zone="ch-system-findutils oldfind">
168 <primary sortas="b-oldfind">oldfind</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
[54e422c1]173 <varlistentry id="updatedb">
174 <term><command>updatedb</command></term>
175 <listitem>
176 <para>Updates the <command>locate</command> database; it scans the
177 entire file system (including other file systems that are currently
178 mounted, unless told not to) and puts every file name it finds into
179 the database</para>
180 <indexterm zone="ch-system-findutils updatedb">
181 <primary sortas="b-updatedb">updatedb</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="xargs">
187 <term><command>xargs</command></term>
188 <listitem>
189 <para>Can be used to apply a given command to a list of files</para>
190 <indexterm zone="ch-system-findutils xargs">
191 <primary sortas="b-xargs">xargs</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 </variablelist>
197
198 </sect2>
[673b0d8]199
200</sect1>
Note: See TracBrowser for help on using the repository browser.