|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.23.1: - New or updated translations: - Greek by Pierros Papadeas <firstname.lastname@example.org> - Traditional Chinese by Chai Zhenhua <email@example.com> and Wei-Lun Chao <firstname.lastname@example.org> Changes in version 0.23: - Don't prune no-op bind mounts (mounting a directory over itself) - New or updated translations: - Arabic by Amjad Saad <email@example.com> and Munzir Ta 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.23.1-1) unstable; urgency=low * New upstream release - Updated translations - more»
2010-09-14 Miloslav Trmač <firstname.lastname@example.org> * configure.ac: Release version 0.23.1. * NEWS: Up more»