6.42. 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).

Приблизительное время сборки: 0.4 SBU
Требует свободного места на диске: 29 MB

6.42.1. Installation of Findutils

Prepare Findutils for compilation:

./configure --prefix=/usr                   \
            --libexecdir=/usr/lib/findutils \

The meaning of the configure options:


This option changes the location of the locate database to be in /var/lib/locate, which is FHS-compliant.

Cкомпилируем пакет:


Чтобы запустить тестирование пакета, выполните:

make check

Установим пакет:

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.42.2. Содержимое Findutils

Установленные программы: bigram, code, find, frcode, locate, oldfind, updatedb, and xargs
Установленный каталог: /usr/lib/findutils

Краткое описание


Was formerly used to produce locate databases


Was formerly used to produce locate databases; it is the ancestor of frcode.


Searches given directory trees for files matching the specified criteria


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.


Searches through a database of file names and reports the names that contain a given string or match a given pattern


Older version of find, using a different algorithm


Updates the locate database; it scans the entire file system (including other file systems that are currently mounted, unless told not to) and puts every file name it finds into все же запустить тестирование database


Can be used to apply a given command to a list of files