source: chapter08/findutils.xml@ ccb61b7

xry111/arm64 xry111/arm64-12.0
Last change on this file since ccb61b7 was ccb61b7, checked in by Xi Ruoyao <xry111@…>, 23 months ago

arm64: Revert "Fix issue building findutils on a 32bit system"

This reverts commit f2ab0c5d056c1cf7a8a16cd43936fa0cc2ac5b0b.

We only care AArch64 now, maybe we'll need to introduce something
similar if we'll ever add 32-bit ARM support.

  • Property mode set to 100644
File size: 4.7 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">./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><command>TIME_32_BIT_OK=yes</command></term>
55 <listitem>
56 <para>This setting is needed for building on a 32 bit system.</para>
57 </listitem>
58 </varlistentry>
59
60 <varlistentry>
61 <term><parameter>--localstatedir</parameter></term>
62 <listitem>
63 <para>This option changes the location of the <command>locate</command>
64 database to be in <filename class="directory">/var/lib/locate</filename>,
65 which is FHS-compliant.</para>
66 </listitem>
67 </varlistentry>
68
69 </variablelist>
70
71 <para>Compile the package:</para>
72
73<screen><userinput remap="make">make</userinput></screen>
74
75 <para>To test the results, issue:</para>
76
77<screen><userinput remap="test">chown -Rv tester .
78su tester -c "PATH=$PATH make check"</userinput></screen>
79
80 <para>Install the package:</para>
81
82<screen><userinput remap="install">make install</userinput></screen>
83
84 </sect2>
85
86 <sect2 id="contents-findutils" role="content">
87 <title>Contents of Findutils</title>
88
89 <segmentedlist>
90 <segtitle>Installed programs</segtitle>
91 <segtitle>Installed directory</segtitle>
92
93 <seglistitem>
94 <seg>find, locate, updatedb, and xargs</seg>
95 <seg>/var/lib/locate</seg>
96 </seglistitem>
97
98 </segmentedlist>
99
100 <variablelist>
101 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
102 <?dbfo list-presentation="list"?>
103 <?dbhtml list-presentation="table"?>
104
105 <varlistentry id="find">
106 <term><command>find</command></term>
107 <listitem>
108 <para>Searches given directory trees for files matching the specified
109 criteria</para>
110 <indexterm zone="ch-system-findutils find">
111 <primary sortas="b-find">find</primary>
112 </indexterm>
113 </listitem>
114 </varlistentry>
115
116 <varlistentry id="locate">
117 <term><command>locate</command></term>
118 <listitem>
119 <para>Searches through a database of file names and reports the names
120 that contain a given string or match a given pattern</para>
121 <indexterm zone="ch-system-findutils locate">
122 <primary sortas="b-locate">locate</primary>
123 </indexterm>
124 </listitem>
125 </varlistentry>
126
127 <varlistentry id="updatedb">
128 <term><command>updatedb</command></term>
129 <listitem>
130 <para>Updates the <command>locate</command> database; it scans the
131 entire file system (including other file systems that are currently
132 mounted, unless told not to) and puts every file name it finds into
133 the database</para>
134 <indexterm zone="ch-system-findutils updatedb">
135 <primary sortas="b-updatedb">updatedb</primary>
136 </indexterm>
137 </listitem>
138 </varlistentry>
139
140 <varlistentry id="xargs">
141 <term><command>xargs</command></term>
142 <listitem>
143 <para>Can be used to apply a given command to a list of files</para>
144 <indexterm zone="ch-system-findutils xargs">
145 <primary sortas="b-xargs">xargs</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 </variablelist>
151
152 </sect2>
153
154</sect1>
Note: See TracBrowser for help on using the repository browser.