mlocate - quickly find files on the filesystem based on their name

Property Value
Distribution Debian 10 (Buster)
Repository Debian Main amd64
Package filename mlocate_0.26-3_amd64.deb
Package name mlocate
Package version 0.26
Package release 3
Package architecture amd64
Package type deb
Category implemented-in::c interface::commandline role::program scope::utility use::searching utils
License -
Maintainer Tollef Fog Heen <>
Download size 95.38 KB
Installed size 492.00 KB
mlocate is a new implementation of locate, a tool to find files
anywhere in the filesystem based on their name, using a fixed pattern
or a regular expression. Unlike other tools like find(1), locate uses
a previously created database to perform the search, allowing queries
to execute much faster. This database is updated periodically from
Several implementations of locate exist: the original implementation
from GNU's findutils, slocate, and mlocate. The advantages of mlocate
* 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.


Package Version Architecture Repository
mlocate_0.26-3_i386.deb 0.26 i386 Debian Main
mlocate - - -


Name Value
adduser -
libc6 >= 2.14


Name Value
findutils <= 4.2.31-1
slocate <= 3.1-1.1


Type URL
Binary Package mlocate_0.26-3_amd64.deb
Source Package mlocate

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install mlocate deb package:
    # sudo apt-get install mlocate




2018-11-14 - Tollef Fog Heen <>
mlocate (0.26-3) unstable; urgency=medium
* Update list of excluded file systems.  Closes: #907579
* Run cron script under nice.  Closes: #602485
* Suggest nocache.  Closes: #911653
* Update upstream home page location and watch file.  Also update
debian/copyright.  Closes: #867640
* Use getent group instead of sg in postinst for testing if the mlocate
group exists or not.  Closes: #904050
* Pull in patch from upstream to fix up include guards for db.h and ship
the file.  Closes: #770699
* Update VCS-git fields.
2016-11-13 - Tollef Fog Heen <>
mlocate (0.26-2) unstable; urgency=medium
* Add support for nocache(1) to cron.daily.  Closes: #711323
* Update Homepage URL in control.  Closes: #791762
* Add /var/lib/os-prober to PRUNEPATHS.  Closes: #810670
* Add /var/lib/ceph to PRUNEPATHS and ceph as fuse.ceph to PRUNEFS.
Closes: #786433
* Add fuse.rozofs to PRUNEFS.  Closes: #720465
* Update name of mfs to fuse.mfs in PRUNEFS.  Closes: #810902
* Add devtmpfs to PRUNEFS.  Closes: #762172
* Add ${misc:Depends} to Depends in control file.
* Switch to dh for the build system and bump compat to 10.
- Drop debian/mlocate.dirs
- Drop most of debian/mlocate.install
- Clean up debian/rules
- Add debian/
* Drop gitpkg scaffolding.
* Add dh-autoreconf to build-depends.  Closes: #700094
* Make updatedb man page a slave to update.mlocate manpage, to make
lintian happier.
* Update Standards-Version.  No further changes necessary for this.
2013-06-13 - Tollef Fog Heen <>
mlocate (0.26-1) unstable; urgency=low
* New upstream release.  Closes: #669368
- Stops using PATH_MAX.  Closes: #610209
* The filesystem type for Lustre is lustre, not lustre_lite.  Update
updatedb.conf accordingly.  Closes: #660781
* Fix up locking in cron.daily.  Closes: #611096
* rm -rf /var/lib/mlocate on purge, don't just take out single files.
Closes: #542616
2010-09-25 - Tollef Fog Heen <>
mlocate (0.23.1-1) unstable; urgency=low
* New upstream release
- Updated translations
- Don't prune no-op bind mounts (mounting a directory over itself)
* Remove Thomas Jollans from Uploaders. Closes: #573428
* Add curlftpfs to default exclude list.  Closes: #585746
* Stop removing the mlocate group on purge.  Closes: #561469
2009-11-03 - Tollef Fog Heen <>
mlocate (0.22.2-1) unstable; urgency=low
* New upstream version
- Updated translations
- Fix format docs
- Ignore --require-visibility in locate if the database is not owned
by group mlocate or it is readable by others (#7).
- Refuse to open unprivileged databases in directories only accessible
by group mlocate.
2009-10-03 - Tollef Fog Heen <>
mlocate (0.21.1-3) unstable; urgency=low
[ Adeodato Simó ]
* Remove the "mlocate" group on purge. No other files than the mlocate.db
database should belong to said group, and since it also gets removed on
purge, it should be safe to remove the group as well. (Closes: #520017)
[ Tollef Fog Heen ]
* Adopt package.  (Closes: #548351)
* Add fuse.glusterfs to PRUNEFS.  (Closes: #535170)
* Add fuse.sshfs to PRUNEFS.  (Closes: #526262)
* Stop giving out an error when not running updatedb because we are on
battery.  (Closes: #519188)
* Remove XS-X-Collab-Maint from debian/control, it seems it didn't take
2009-03-02 - Adeodato Simó <>
mlocate (0.21.1-2) unstable; urgency=low
* Do not let the cron job run if we detect we're running on battery.
Patch from Ubuntu by Colin Watson. (Closes: #504350)
* Update Standards-Version to 3.8.0 (no changes needed).
2008-10-28 - Adeodato Simó <>
mlocate (0.21.1-1) unstable; urgency=low
* New upstream release (translations and documentations updates only).

See Also

Package Description
mlock_2007f~dfsg-6_amd64.deb mailbox locking program
mlpack-bin_3.0.4-1_amd64.deb intuitive, fast, scalable C++ machine learning library (binaries)
mlpack-doc_3.0.4-1_all.deb intuitive, fast, scalable C++ machine learning library (documentation)
mlpost_0.8.1-8+b1_amd64.deb OCaml interface to Metapost (command-line tool)
mlterm-common_3.8.6-2_amd64.deb MultiLingual TERMinal, common files
mlterm-im-canna_3.8.6-2_amd64.deb MultiLingual TERMinal, Canna input method plugin
mlterm-im-fcitx_3.8.6-2_amd64.deb MultiLingual TERMinal, Flexible Input Method plugin
mlterm-im-ibus_3.8.6-2_amd64.deb MultiLingual TERMinal, IBus input method plugin
mlterm-im-m17nlib_3.8.6-2_amd64.deb MultiLingual TERMinal, m17nlib input method plugin
mlterm-im-scim_3.8.6-2_amd64.deb MultiLingual TERMinal, scim input method plugin
mlterm-im-skk_3.8.6-2_amd64.deb MultiLingual TERMinal, SKK input method plugin
mlterm-im-uim_3.8.6-2_amd64.deb MultiLingual TERMinal, uim input method plugin
mlterm-im-wnn_3.8.6-2_amd64.deb MultiLingual TERMinal, FreeWnn input method plugin
mlterm-tiny_3.8.6-2_amd64.deb MultiLingual TERMinal, tiny version
mlterm-tools_3.8.6-2_amd64.deb MultiLingual TERMinal, additional tools