James Rayner
2007-11-05

slocate Replaced by mlocate



mlocate has replaced slocate as the default locate implementation after a short period in [testing], and an even longer one in [extra]. This was requested on the bug tracker a while back as FS4490

mlocate is used by Fedora at least and unlike slocate, no longer has the well known midnight updatedb crawl. In all other aspects it's compatible with and identical to slocate.

AndyRTR posted some performance measurements on the mailing list.

As described by the README:
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 slocate compatibility.

Copyright © 2002-2008 Judd Vinet and Aaron Griffin.
The Arch Linux name and logo are recognized trademarks. Some rights reserved.
The registered trademark Linux® is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.