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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 31e0f58 was 5df9aff, checked in by Jim Gifford <clfs@…>, 19 years ago

r1105@server (orig r1103): chris | 2006-01-28 23:11:28 -0800
Updated Findutils dependencies

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 <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 <segmentedlist>
26 <segtitle>&dependencies;</segtitle>
27
28 <seglistitem>
29 <seg>Bash, Binutils, Coreutils, DejaGNU, Diffutils, GCC, Gettext,
30 Glibc, Grep, Make and Sed</seg>
31 </seglistitem>
32 </segmentedlist>
33
34 </sect2>
35
36 <sect2 role="installation">
37 <title>Installation of Findutils</title>
38
39 <para os="a">Prepare Findutils for compilation:</para>
40
41<screen os="b"><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/locate \
42 --localstatedir=/var/lib/locate</userinput></screen>
43
44 <variablelist os="c">
45 <title>The meaning of the configure options:</title>
46
47 <varlistentry>
48 <term><parameter>--localstatedir</parameter></term>
49 <listitem>
50 <para>This option changes the location of the <command>locate</command>
51 database to be in <filename class="directory">/var/lib/locate</filename>,
52 which is FHS-compliant.</para>
53 </listitem>
54 </varlistentry>
55
56 </variablelist>
57
58 <para os="d">Compile the package:</para>
59
60<screen os="e"><userinput>make</userinput></screen>
61
62 <para os="f">To test the results, issue:
63 <userinput>make check</userinput>.</para>
64
65 <para os="g">Install the package:</para>
66
67<screen os="h"><userinput>make install</userinput></screen>
68
69 </sect2>
70
71 <sect2 id="contents-findutils" role="content">
72 <title>Contents of Findutils</title>
73
74 <segmentedlist>
75 <segtitle>Installed programs</segtitle>
76
77 <seglistitem>
78 <seg>bigram, code, find, frcode, locate, updatedb, and xargs</seg>
79 </seglistitem>
80 </segmentedlist>
81
82 <variablelist>
83 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
84 <?dbfo list-presentation="list"?>
85 <?dbhtml list-presentation="table"?>
86
87 <varlistentry id="bigram">
88 <term><command>bigram</command></term>
89 <listitem>
90 <para>Was formerly used to produce <command>locate</command>
91 databases</para>
92 <indexterm zone="ch-system-findutils bigram">
93 <primary sortas="b-bigram">bigram</primary>
94 </indexterm>
95 </listitem>
96 </varlistentry>
97
98 <varlistentry id="code">
99 <term><command>code</command></term>
100 <listitem>
101 <para>Was formerly used to produce <command>locate</command>
102 databases; it is the ancestor of <command>frcode</command>.</para>
103 <indexterm zone="ch-system-findutils code">
104 <primary sortas="b-code">code</primary>
105 </indexterm>
106 </listitem>
107 </varlistentry>
108
109 <varlistentry id="find">
110 <term><command>find</command></term>
111 <listitem>
112 <para>Searches given directory trees for files matching the specified
113 criteria</para>
114 <indexterm zone="ch-system-findutils find">
115 <primary sortas="b-find">find</primary>
116 </indexterm>
117 </listitem>
118 </varlistentry>
119
120 <varlistentry id="frcode">
121 <term><command>frcode</command></term>
122 <listitem>
123 <para>Is called by <command>updatedb</command> to compress the list
124 of file names; it uses front-compression, reducing the database size
125 by a factor of four to five.</para>
126 <indexterm zone="ch-system-findutils frcode">
127 <primary sortas="b-frcode">frcode</primary>
128 </indexterm>
129 </listitem>
130 </varlistentry>
131
132 <varlistentry id="locate">
133 <term><command>locate</command></term>
134 <listitem>
135 <para>Searches through a database of file names and reports the names
136 that contain a given string or match a given pattern</para>
137 <indexterm zone="ch-system-findutils locate">
138 <primary sortas="b-locate">locate</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="updatedb">
144 <term><command>updatedb</command></term>
145 <listitem>
146 <para>Updates the <command>locate</command> database; it scans the
147 entire file system (including other file systems that are currently
148 mounted, unless told not to) and puts every file name it finds into
149 the database</para>
150 <indexterm zone="ch-system-findutils updatedb">
151 <primary sortas="b-updatedb">updatedb</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="xargs">
157 <term><command>xargs</command></term>
158 <listitem>
159 <para>Can be used to apply a given command to a list of files</para>
160 <indexterm zone="ch-system-findutils xargs">
161 <primary sortas="b-xargs">xargs</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 </variablelist>
167
168 </sect2>
169
170</sect1>
Note: See TracBrowser for help on using the repository browser.