findutils.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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>9.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 meaning of the configure options:</para>
  34. <variablelist>
  35. <varlistentry>
  36. <term><parameter>--localstatedir</parameter></term>
  37. <listitem><para>This option changes the location of the <command>locate</command>
  38. database to be in <filename class="directory">/var/lib/locate</filename>, which
  39. is FHS-compliant.</para></listitem>
  40. </varlistentry>
  41. </variablelist>
  42. <para>Compile the package:</para>
  43. <screen><userinput>make</userinput></screen>
  44. <para>To test the results, issue:
  45. <userinput>make check</userinput>.</para>
  46. <para>Install the package:</para>
  47. <screen><userinput>make install</userinput></screen>
  48. </sect2>
  49. <sect2 id="contents-findutils" role="content"><title>Contents of Findutils</title>
  50. <segmentedlist>
  51. <segtitle>Installed programs</segtitle>
  52. <seglistitem><seg>bigram, code, find, frcode, locate, updatedb, and xargs</seg></seglistitem>
  53. </segmentedlist>
  54. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  55. <?dbfo list-presentation="list"?>
  56. <?dbhtml list-presentation="table"?>
  57. <varlistentry id="bigram">
  58. <term><command>bigram</command></term>
  59. <listitem>
  60. <para>Was formerly used to produce <command>locate</command> databases</para>
  61. <indexterm zone="ch-system-findutils bigram"><primary sortas="b-bigram">bigram</primary></indexterm>
  62. </listitem>
  63. </varlistentry>
  64. <varlistentry id="code">
  65. <term><command>code</command></term>
  66. <listitem>
  67. <para>Was formerly used to produce <command>locate</command>
  68. databases; it is the ancestor of <command>frcode</command>.</para>
  69. <indexterm zone="ch-system-findutils code"><primary sortas="b-code">code</primary></indexterm>
  70. </listitem>
  71. </varlistentry>
  72. <varlistentry id="find">
  73. <term><command>find</command></term>
  74. <listitem>
  75. <para>Searches given directory trees for files matching the specified criteria</para>
  76. <indexterm zone="ch-system-findutils find"><primary sortas="b-find">find</primary></indexterm>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry id="frcode">
  80. <term><command>frcode</command></term>
  81. <listitem>
  82. <para>Is called by <command>updatedb</command> to compress the list of file names; it uses
  83. front-compression, reducing the database size by a factor of four to
  84. five.</para>
  85. <indexterm zone="ch-system-findutils frcode"><primary sortas="b-frcode">frcode</primary></indexterm>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="locate">
  89. <term><command>locate</command></term>
  90. <listitem>
  91. <para>Searches through a database of file names and reports the names
  92. that contain a given string or match a given pattern</para>
  93. <indexterm zone="ch-system-findutils locate"><primary sortas="b-locate">locate</primary></indexterm>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="updatedb">
  97. <term><command>updatedb</command></term>
  98. <listitem>
  99. <para>Updates the <command>locate</command> database; it scans
  100. the entire file system (including other file systems that are currently mounted,
  101. unless told not to) and puts every file name it finds into the database</para>
  102. <indexterm zone="ch-system-findutils updatedb"><primary sortas="b-updatedb">updatedb</primary></indexterm>
  103. </listitem>
  104. </varlistentry>
  105. <varlistentry id="xargs">
  106. <term><command>xargs</command></term>
  107. <listitem>
  108. <para>Can be used to apply a given command to a list of files</para>
  109. <indexterm zone="ch-system-findutils xargs"><primary sortas="b-xargs">xargs</primary></indexterm>
  110. </listitem>
  111. </varlistentry>
  112. </variablelist>
  113. </sect2>
  114. </sect1>