|File Search||Catalog||Content Search|
Several implementations of locate exist: the original implementation from GNU's findutils, slocate, and mlocate. The advantages of mlocate are:
* it indexes all the filesystem, but results of a search will only include files that the user running locate has access to. It does this by updating the database as root, but making it unreadable for normal users, who can only access it via the locate binary. slocate does this as well, but not the original locate.
* instead of re-reading all the contents of all directories each time the database is updated, mlocate keeps timestamp information in its database and can know if the contents of a directory changed without reading them again. This makes updates much faster and less demanding on the hard drive. This feature is only found in mlocate.
Installing mlocate will change the /usr/bin/locate binary to point to mlocate via the alternatives mechanism. After installation, you may wish to run /etc/cron.daily/mlocate by hand to create the database, otherwise mlocate won't work until that script is run from cron itself (since mlocate does not use the same database file as standard locate). Also, you may wish to remove the "locate" package in order not to have two different database files updated regularly on your system.
About ===== mlocate is a locate/updatedb implementation. The 'm' stands for "merging": updatedb reuses the existing database to avoid rereading most of the file system, which makes updatedb faster and does not trash the system caches as much. The locate(1) utility is intended to be completely compatible to slocate. It also attempts to be compatible to GNU locate, when it does not conflict with more»
Changes in version 0.22.2: - New or updated translations: - Portuguese by Rui Gouveia <email@example.com> - Japanese by Hyu_gabaru Ryu_ichi <firstname.lastname@example.org> - Polish by Piotr Drąg <email@example.com> Changes in version 0.22.1: - Fix mlocate.db format documentation. Patch by Tomas Zellerin <firstname.lastname@example.org>. - New or updated translations: - Canadian by Xavier Queral more»
locate(1) locate(1) NAME locate - find files by name SYNOPSIS locate [OPTION]... PATTERN... DESCRIPTION locate reads one or more databases prepared by updatedb(8) and writes file names matching at least one of the PATTERNs to standard output, one per line. If --regex is not specified, PATTERN more»
mlocate.db(5) mlocate.db(5) NAME mlocate.db - a m more»
updatedb.conf(5) updatedb.conf(5) NAME /etc/updatedb.co more»
updatedb(8) updatedb(8) NAME updatedb - updat more»
mlocate (0.22.2-1) unstable; urgency=low * New upstream version - Updated translations - more»
2009-10-02 Miloslav Trmač <email@example.com> * configure.ac: Release version 0.22.2. * NEWS: Up more»