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