mklocatedb(8)

MKLOCATEDB(8) System Manager's Manual MKLOCATEDB(8)

NAME

mklocatedb - make a file name database

SYNOPSIS

mklocatedb [options]

DESCRIPTION

This manual page documents the ALT Linux version of mklocatedb, which makes file name databases used by ALT Linux locate. The file name databases contain lists of files that were in particular directory trees when the databases were last updated. The file name of the default database is determined when locate and mklocatedb are configured and installed. The frequency with which the databases are updated and the directories for which they contain entries depend on how often mklocatedb is run, and with which arguments.

In networked environments, it often makes sense to build a database at the root of each filesystem, containing the entries for that filesystem. mklocatedb is then run for each filesystem on the fileserver where that filesystem is on a local disk, to prevent thrashing the network. Users can select which databases locate searches using an environment variable or command line option; see locate(1). Databases can not be concatenated together.

OPTIONS

--searchpaths='path1 path2...'
Directories to put in the database. The environment variable SEARCHPATHS also sets this value. Default is /.
--prunepaths='path1 path2...'
Directories to not put in the database, which would otherwise be. The environment variable PRUNEPATHS also sets this value. Default is /afs /media /mnt /net /proc /tmp /usr/tmp /var/lib/vz/private /var/lib/vz/root /var/tmp /sys.
--prunefs='fstyp1 fstyp2...'
File systems to not put in the database, which would otherwise be. Note that files are pruned when a file system is reached; Any file system mounted under an undesired file system will be ignored. The environment variable PRUNEFS also sets this value. Default is afs autofs cardfs cefs cifs coda davfs devfs devpts ftpfs iso9660 localfs mfs ncp ncpfs nfs nfs4 proc shfs smbfs sshfs subfs supermount sysfs tmpfs udf usbdevfs vfat.
--output=dbfile
The database file to build. The environment variable DBFILE also sets this value. Default is /var/lib/locate/locatedb.
--mode=mode
The database file permissions. The environment variable MODE also sets this value. Default is 0644 (unless --runas have been specified; in this case, default value is 0640).
--runas=user
The user to search directories as. The environment variable RUNAS also sets this value. Default is to search directories as the current user, unless run by superuser. In latter case, run search as user slocate.
--keep-cap
If run by superuser, keep CAP_DAC_READ_SEARCH capability. The environment variable KEEPCAP also sets this value. By default, all capabilities will be dropped.
--help
Print a summary of the options to mklocatedb and exit.

SEE ALSO

locate(1), find(1), xargs(1), locatedb(5).

16 August 2003 ALT Linux Team