source: chapter06/findutils.xml@ 040ecb6

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.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 040ecb6 was 040ecb6, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update to man-db-2.7.4.
Update to linux-4.2.3.
Update to tzdata2015g.
Many updates to installed files and directories. Huge thanks to Fernando.

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

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