The Findutils package contains programs to find files. Programs are
provided to search through all the files in a directory tree and to
create, maintain, and search a database (often faster than the
recursive find, but unreliable unless the database has been updated
recently). Findutils also supplies the xargs program, which can be used
to run a specified command on each file selected by a search.
Approximate build time:
0.4 SBU
Required disk space:
51 MB
8.58.1. Installation of Findutils
Prepare Findutils for compilation:
case $(uname -m) in
i?86) TIME_T_32_BIT_OK=yes ./configure --prefix=/usr --localstatedir=/var/lib/locate ;;
x86_64) ./configure --prefix=/usr --localstatedir=/var/lib/locate ;;
esac
The meaning of the configure options:
-
TIME_32_BIT_OK=yes
-
This setting is needed for building on a 32 bit system.
-
--localstatedir
-
This option moves the locate database to
/var/lib/locate
, which is the
FHS-compliant location.
Compile the package:
make
To test the results, issue:
chown -Rv tester .
su tester -c "PATH=$PATH make check"
Install the package:
make install