source: chapter06/findutils.xml@ a001133

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since a001133 was a001133, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

HEAD: Retaged the introductori packages sections in chapter0{6,7,8}

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3601 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-findutils" xreflabel="Findutils" role="wrap">
7<title>Findutils-&findutils-version;</title>
8<?dbhtml filename="findutils.html"?>
9
10<indexterm zone="ch-system-findutils"><primary sortas="a-Findutils">Findutils</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Findutils package contains programs to find files. Processes
14are provided to recursively search through a directory tree and to
15create, maintain and search a database (often faster than the recursive
16find, but unreliable if the database has not been recently updated).</para>
17
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>
23
24<segmentedlist>
25<segtitle>Findutils installation depends on</segtitle>
26<seglistitem><seg>Bash, Binutils, Coreutils,
27Diffutils, GCC, Gettext, Glibc, Grep, Make, Sed</seg></seglistitem>
28</segmentedlist>
29</sect2>
30
31<sect2 role="installation">
32<title>Installation of Findutils</title>
33
34<para>Prepare Findutils for compilation:</para>
35
36<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/locate \
37 --localstatedir=/var/lib/locate</userinput></screen>
38
39<para>The localstatedir directive above changes the location of the locate
40database to be in /var/lib/locate, which is FHS-compliant.</para>
41
42<para>Compile the package:</para>
43
44<screen><userinput>make</userinput></screen>
45
46<para>To test the results, issue:
47<userinput>make check</userinput>.</para>
48
49<para>Now install the package:</para>
50
51<screen><userinput>make install</userinput></screen>
52
53</sect2>
54
55
56<sect2 id="contents-findutils"><title>Contents of Findutils</title>
57
58<para><emphasis>Installed programs</emphasis>: bigram, code, find, frcode,
59locate, updatedb and xargs</para>
60
61</sect2>
62
63
64<sect2><title>Short descriptions</title>
65
66<indexterm zone="ch-system-findutils bigram"><primary sortas="b-bigram">bigram</primary></indexterm>
67<para id="bigram"><command>bigram</command> was formerly used to produce locate
68databases.</para>
69
70<indexterm zone="ch-system-findutils code"><primary sortas="b-code">code</primary></indexterm>
71<para id="code"><command>code</command> was formerly used to produce locate
72databases. It is the ancestor of frcode.</para>
73
74<indexterm zone="ch-system-findutils find"><primary sortas="b-find">find</primary></indexterm>
75<para id="find"><command>find</command> searches given directory trees for files
76matching the specified criteria.</para>
77
78<indexterm zone="ch-system-findutils frcode"><primary sortas="b-frcode">frcode</primary></indexterm>
79<para id="frcode"><command>frcode</command> is called by updatedb to compress the
80list of file names. It uses front-compression, reducing the database size by a
81factor of 4 to 5.</para>
82
83<indexterm zone="ch-system-findutils locate"><primary sortas="b-locate">locate</primary></indexterm>
84<para id="locate"><command>locate</command> searches through a database of file names,
85and reports the names that contain a given string or match a given pattern.</para>
86
87<indexterm zone="ch-system-findutils updatedb"><primary sortas="b-updatedb">updatedb</primary></indexterm>
88<para id="updatedb"><command>updatedb</command> updates the locate database. It scans
89the entire file system (including other file systems that are currently mounted,
90unless told not to) and puts every file name it finds in the database.</para>
91
92<indexterm zone="ch-system-findutils xargs"><primary sortas="b-xargs">xargs</primary></indexterm>
93<para id="xargs"><command>xargs</command> can be used to apply a given command to
94a list of files.</para>
95
96</sect2>
97
98
99
100</sect1>
Note: See TracBrowser for help on using the repository browser.