source: chapter06/findutils.xml@ aca25d4

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since aca25d4 was 8edca0a, checked in by Krejzi <krejzi@…>, 11 years ago

Rework D-Bus instructions, move user creation to createfiles.xml. Remove libdir switch from Xz and move libs manually as done in Zlib instructions. Modify Sysvinit instructions for few programs we need. Don't move find in findutils, it's not needed by Systemd.

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

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