findutils.xml 4.6 KB

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