|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.21.1: - Clarified updatedb.conf(5) a bit. - New or updated translations: - Catalan by Xavier Queralt Mateu <email@example.com> - German by Thomas Spura <firstname.lastname@example.org> - Italian by Francesco Tombolini <email@example.com> - Polish by Piotr Drąg <firstname.lastname@example.org> - Brazilian Portuguese by Taylon Silmer <email@example.com> - Serbian by Miloš K 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.21.1-1) unstable; urgency=low * New upstream release (translations and documentations more»
2008-10-28 Miloslav Trmač <firstname.lastname@example.org> * configure.ac: Version 0.21.1 * NEWS: Update. * more»