How To Install mlocate on Rocky Linux 8
Introduction
In this tutorial we learn how to install mlocate
on Rocky Linux 8.
What is mlocate
mlocate is a locate/updatedb implementation. It keeps a database of all existing files and allows you to lookup files by name. The ’m’ stands for “merging” rereading most of the file system, which makes updatedb faster and does not trash the system caches as much as traditional locate implementations.
We can use yum
or dnf
to install mlocate
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mlocate.
Install mlocate on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install mlocate
using dnf
by running the following command:
sudo dnf -y install mlocate
Install mlocate on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install mlocate
using yum
by running the following command:
sudo yum -y install mlocate
How To Uninstall mlocate on Rocky Linux 8
To uninstall only the mlocate
package we can use the following command:
sudo dnf remove mlocate
mlocate Package Contents on Rocky Linux 8
/etc/updatedb.conf
/usr/bin/locate
/usr/bin/updatedb
/usr/lib/.build-id
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/0166cbc57d4ff703455047c5318d5915516872
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/bdd04fa2930f21b2241de81802bc809f0a832d
/usr/lib/systemd/system/mlocate-updatedb.service
/usr/lib/systemd/system/mlocate-updatedb.timer
/usr/libexec/mlocate-run-updatedb
/usr/share/doc/mlocate
/usr/share/doc/mlocate/AUTHORS
/usr/share/doc/mlocate/COPYING
/usr/share/doc/mlocate/NEWS
/usr/share/doc/mlocate/README
/usr/share/locale/ar/LC_MESSAGES/mlocate.mo
/usr/share/locale/as/LC_MESSAGES/mlocate.mo
/usr/share/locale/ast/LC_MESSAGES/mlocate.mo
/usr/share/locale/bg/LC_MESSAGES/mlocate.mo
/usr/share/locale/bs/LC_MESSAGES/mlocate.mo
/usr/share/locale/ca/LC_MESSAGES/mlocate.mo
/usr/share/locale/cs/LC_MESSAGES/mlocate.mo
/usr/share/locale/da/LC_MESSAGES/mlocate.mo
/usr/share/locale/de/LC_MESSAGES/mlocate.mo
/usr/share/locale/el/LC_MESSAGES/mlocate.mo
/usr/share/locale/en_GB/LC_MESSAGES/mlocate.mo
/usr/share/locale/es/LC_MESSAGES/mlocate.mo
/usr/share/locale/et/LC_MESSAGES/mlocate.mo
/usr/share/locale/fa/LC_MESSAGES/mlocate.mo
/usr/share/locale/fi/LC_MESSAGES/mlocate.mo
/usr/share/locale/fr/LC_MESSAGES/mlocate.mo
/usr/share/locale/gu/LC_MESSAGES/mlocate.mo
/usr/share/locale/hu/LC_MESSAGES/mlocate.mo
/usr/share/locale/it/LC_MESSAGES/mlocate.mo
/usr/share/locale/ja/LC_MESSAGES/mlocate.mo
/usr/share/locale/ko/LC_MESSAGES/mlocate.mo
/usr/share/locale/lv/LC_MESSAGES/mlocate.mo
/usr/share/locale/ms/LC_MESSAGES/mlocate.mo
/usr/share/locale/nds/LC_MESSAGES/mlocate.mo
/usr/share/locale/nl/LC_MESSAGES/mlocate.mo
/usr/share/locale/pl/LC_MESSAGES/mlocate.mo
/usr/share/locale/pt/LC_MESSAGES/mlocate.mo
/usr/share/locale/pt_BR/LC_MESSAGES/mlocate.mo
/usr/share/locale/ru/LC_MESSAGES/mlocate.mo
/usr/share/locale/sr/LC_MESSAGES/mlocate.mo
/usr/share/locale/sr@latin/LC_MESSAGES/mlocate.mo
/usr/share/locale/sv/LC_MESSAGES/mlocate.mo
/usr/share/locale/ta/LC_MESSAGES/mlocate.mo
/usr/share/locale/tr/LC_MESSAGES/mlocate.mo
/usr/share/locale/uk/LC_MESSAGES/mlocate.mo
/usr/share/locale/zh_CN/LC_MESSAGES/mlocate.mo
/usr/share/locale/zh_TW/LC_MESSAGES/mlocate.mo
/usr/share/man/man1/locate.1.gz
/usr/share/man/man5/mlocate.db.5.gz
/usr/share/man/man5/updatedb.conf.5.gz
/usr/share/man/man8/updatedb.8.gz
/var/lib/mlocate
/var/lib/mlocate/mlocate.db
References
Summary
In this tutorial we learn how to install mlocate
on Rocky Linux 8 using yum and dnf.