source: chapter06/findutils.xml@ 1540ea0

Last change on this file since 1540ea0 was a0e1913, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Removed the package name from the dependencies titles.

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

  • Property mode set to 100644
File size: 4.5 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c2133bc]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[752f4e5]6<sect1 id="ch-system-findutils" role="wrap">
[673b0d8]7<title>Findutils-&findutils-version;</title>
8<?dbhtml filename="findutils.html"?>
[6370fa6]9
[673b0d8]10<indexterm zone="ch-system-findutils"><primary sortas="a-Findutils">Findutils</primary></indexterm>
[5888299]11
[a001133]12<sect2 role="package"><title/>
[673b0d8]13<para>The Findutils package contains programs to find files. Processes
14are provided to recursively search through a directory tree and to
[69993f4]15create, maintain, and search a database (often faster than the recursive
[673b0d8]16find, but unreliable if the database has not been recently updated).</para>
17
[a001133]18<segmentedlist>
19<segtitle>&buildtime;</segtitle>
20<segtitle>&diskspace;</segtitle>
21<seglistitem><seg>0.2 SBU</seg><seg>7.5 MB</seg></seglistitem>
22</segmentedlist>
[673b0d8]23
[a001133]24<segmentedlist>
[a0e1913]25<segtitle>&dependencies;</segtitle>
[a001133]26<seglistitem><seg>Bash, Binutils, Coreutils,
[7566baf]27Diffutils, GCC, Gettext, Glibc, Grep, Make and Sed</seg></seglistitem>
[a001133]28</segmentedlist>
29</sect2>
[3554fa3a]30
[a001133]31<sect2 role="installation">
[f4993cf]32<title>Installation of Findutils</title>
[73aedd1d]33
34<para>Prepare Findutils for compilation:</para>
35
[2a264e0b]36<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/locate \
[9dfc02f]37 --localstatedir=/var/lib/locate</userinput></screen>
[73aedd1d]38
[7566baf]39<para>The <parameter>localstatedir</parameter> directive above changes the
40location of the <command>locate</command> database to be in <filename
41class="directory">/var/lib/locate</filename>, which is FHS-compliant.</para>
[73aedd1d]42
43<para>Compile the package:</para>
44
45<screen><userinput>make</userinput></screen>
46
[673b0d8]47<para>To test the results, issue:
[8a5f906]48<userinput>make check</userinput>.</para>
[73aedd1d]49
[ef13657]50<para>Install the package:</para>
[73aedd1d]51
52<screen><userinput>make install</userinput></screen>
[b48b8c5]53
[73aedd1d]54</sect2>
[6370fa6]55
[c6cb3aa]56<sect2 id="contents-findutils" role="content"><title>Contents of Findutils</title>
[673b0d8]57
[c6cb3aa]58<segmentedlist>
59<segtitle>Installed programs</segtitle>
[69993f4]60<seglistitem><seg>bigram, code, find, frcode, locate, updatedb, and xargs</seg></seglistitem>
[c6cb3aa]61</segmentedlist>
[673b0d8]62
[2256873]63<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
[3ed279f]64<?dbfo list-presentation="list"?>
[c5f9180]65<?dbhtml list-presentation="table"?>
[673b0d8]66
[b8a819f]67<varlistentry id="bigram">
68<term><command>bigram</command></term>
[c6cb3aa]69<listitem>
[2256873]70<para>Was formerly used to produce <command>locate</command> databases</para>
[3ed279f]71<indexterm zone="ch-system-findutils bigram"><primary sortas="b-bigram">bigram</primary></indexterm>
[c6cb3aa]72</listitem>
73</varlistentry>
[673b0d8]74
[b8a819f]75<varlistentry id="code">
76<term><command>code</command></term>
[c6cb3aa]77<listitem>
[2256873]78<para>Was formerly used to produce <command>locate</command>
79databases; it is the ancestor of <command>frcode</command>.</para>
[3ed279f]80<indexterm zone="ch-system-findutils code"><primary sortas="b-code">code</primary></indexterm>
[c6cb3aa]81</listitem>
82</varlistentry>
[6370fa6]83
[b8a819f]84<varlistentry id="find">
85<term><command>find</command></term>
[c6cb3aa]86<listitem>
[2256873]87<para>Searches given directory trees for files matching the specified criteria</para>
[3ed279f]88<indexterm zone="ch-system-findutils find"><primary sortas="b-find">find</primary></indexterm>
[c6cb3aa]89</listitem>
90</varlistentry>
[673b0d8]91
[b8a819f]92<varlistentry id="frcode">
93<term><command>frcode</command></term>
[c6cb3aa]94<listitem>
[2256873]95<para>Is called by <command>updatedb</command> to compress the list of file names; it uses
[ef13657]96front-compression, reducing the database size by a factor of four to
97five.</para>
[3ed279f]98<indexterm zone="ch-system-findutils frcode"><primary sortas="b-frcode">frcode</primary></indexterm>
[c6cb3aa]99</listitem>
100</varlistentry>
101
[b8a819f]102<varlistentry id="locate">
103<term><command>locate</command></term>
[c6cb3aa]104<listitem>
[2256873]105<para>Searches through a database of file names and reports the names
106that contain a given string or match a given pattern</para>
[3ed279f]107<indexterm zone="ch-system-findutils locate"><primary sortas="b-locate">locate</primary></indexterm>
[c6cb3aa]108</listitem>
109</varlistentry>
[673b0d8]110
[b8a819f]111<varlistentry id="updatedb">
112<term><command>updatedb</command></term>
[c6cb3aa]113<listitem>
[2256873]114<para>Updates the <command>locate</command> database; it scans
[673b0d8]115the entire file system (including other file systems that are currently mounted,
[2256873]116unless told not to) and puts every file name it finds into the database</para>
[3ed279f]117<indexterm zone="ch-system-findutils updatedb"><primary sortas="b-updatedb">updatedb</primary></indexterm>
[c6cb3aa]118</listitem>
119</varlistentry>
[673b0d8]120
[b8a819f]121<varlistentry id="xargs">
122<term><command>xargs</command></term>
[c6cb3aa]123<listitem>
[2256873]124<para>Can be used to apply a given command to a list of files</para>
[3ed279f]125<indexterm zone="ch-system-findutils xargs"><primary sortas="b-xargs">xargs</primary></indexterm>
[c6cb3aa]126</listitem>
127</varlistentry>
128</variablelist>
[673b0d8]129
130</sect2>
131
132</sect1>
[ef13657]133
Note: See TracBrowser for help on using the repository browser.