source: chapter08/findutils.xml@ 460f575

arm
Last change on this file since 460f575 was 460f575, checked in by William Harrington <kb0iic@…>, 2 years ago

Initial LFS-ARM book.

  • Property mode set to 100644
File size: 4.9 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 is 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-fin-sbu;</seg>
37 <seg>&findutils-fin-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">case $(uname -m) in
49 arm) TIME_T_32_BIT_OK=yes ./configure --prefix=/usr --localstatedir=/var/lib/locate ;;
50 aarch64) ./configure --prefix=/usr --localstatedir=/var/lib/locate ;;
51esac</userinput></screen>
52 <variablelist>
53 <title>The meaning of the configure options:</title>
54
55 <varlistentry>
56 <term><command>TIME_32_BIT_OK=yes</command></term>
57 <listitem>
58 <para>This setting is needed for building on a 32 bit system.</para>
59 </listitem>
60 </varlistentry>
61
62 <varlistentry>
63 <term><parameter>--localstatedir</parameter></term>
64 <listitem>
65 <para>This option changes the location of the <command>locate</command>
66 database to be in <filename class="directory">/var/lib/locate</filename>,
67 which is FHS-compliant.</para>
68 </listitem>
69 </varlistentry>
70
71 </variablelist>
72
73 <para>Compile the package:</para>
74
75<screen><userinput remap="make">make</userinput></screen>
76
77 <para>To test the results, issue:</para>
78
79<screen><userinput remap="test">chown -Rv tester .
80su tester -c "PATH=$PATH make check"</userinput></screen>
81
82 <para>Install the package:</para>
83
84<screen><userinput remap="install">make install</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>find, locate, updatedb, and xargs</seg>
97 <seg>/var/lib/locate</seg>
98 </seglistitem>
99
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="find">
108 <term><command>find</command></term>
109 <listitem>
110 <para>Searches given directory trees for files matching the specified
111 criteria</para>
112 <indexterm zone="ch-system-findutils find">
113 <primary sortas="b-find">find</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
118 <varlistentry id="locate">
119 <term><command>locate</command></term>
120 <listitem>
121 <para>Searches through a database of file names and reports the names
122 that contain a given string or match a given pattern</para>
123 <indexterm zone="ch-system-findutils locate">
124 <primary sortas="b-locate">locate</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
129 <varlistentry id="updatedb">
130 <term><command>updatedb</command></term>
131 <listitem>
132 <para>Updates the <command>locate</command> database; it scans the
133 entire file system (including other file systems that are currently
134 mounted, unless told not to) and puts every file name it finds into
135 the database</para>
136 <indexterm zone="ch-system-findutils updatedb">
137 <primary sortas="b-updatedb">updatedb</primary>
138 </indexterm>
139 </listitem>
140 </varlistentry>
141
142 <varlistentry id="xargs">
143 <term><command>xargs</command></term>
144 <listitem>
145 <para>Can be used to apply a given command to a list of files</para>
146 <indexterm zone="ch-system-findutils xargs">
147 <primary sortas="b-xargs">xargs</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 </variablelist>
153
154 </sect2>
155
156</sect1>
Note: See TracBrowser for help on using the repository browser.