MTD 248-645A Manual de usuario Pagina 170

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 347
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 169
Linux From Scratch - Version 7.0
150
6.39. Findutils-4.4.2
The Findutils package contains programs to find files. These programs are provided to recursively search through
a directory tree and to create, maintain, and search a database (often faster than the recursive find, but unreliable if
the database has not been recently updated).
Approximate build time: 0.5 SBU
Required disk space: 22 MB
6.39.1. Installation of Findutils
Prepare Findutils for compilation:
./configure --prefix=/usr --libexecdir=/usr/lib/findutils \
--localstatedir=/var/lib/locate
The meaning of the configure options:
--localstatedir
This option changes the location of the locate database to be in /var/lib/locate, which is FHS-compliant.
Compile the package:
make
To test the results, issue:
make check
Install the package:
make install
Some of the scripts in the LFS-Bootscripts package depend on find. As /usr may not be available during the early
stages of booting, this program needs to be on the root partition. The updatedb script also needs to be modified to
correct an explicit path:
mv -v /usr/bin/find /bin
sed -i 's/find:=${BINDIR}/find:=\/bin/' /usr/bin/updatedb
6.39.2. Contents of Findutils
Installed programs: bigram, code, find, frcode, locate, oldfind, updatedb, and xargs
Installed directory: /usr/lib/findutils
Short Descriptions
bigram Was formerly used to produce locate databases
code Was formerly used to produce locate databases; it is the ancestor of frcode.
find Searches given directory trees for files matching the specified criteria
frcode Is called by updatedb to compress the list of file names; it uses front-compression, reducing the
database size by a factor of four to five.
Vista de pagina 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 346 347

Comentarios a estos manuales

Sin comentarios