How To Install mlocate.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install mlocate.x86_64 on Amazon Linux 2.
What is mlocate.x86_64
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” database to avoid 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 to install mlocate.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install mlocate.x86_64.
Install mlocate.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install mlocate.x86_64 using yum by running the following command:
sudo yum -y install mlocate.x86_64
How To Uninstall mlocate.x86_64 on Amazon Linux 2
To uninstall only the mlocate.x86_64 package we can use the following command:
sudo yum remove mlocate.x86_64
mlocate.x86_64 Package Contents on Amazon Linux 2
/etc/cron.daily/mlocate
/etc/updatedb.conf
/usr/bin/locate
/usr/bin/updatedb
/usr/share/doc/mlocate-0.26
/usr/share/doc/mlocate-0.26/AUTHORS
/usr/share/doc/mlocate-0.26/COPYING
/usr/share/doc/mlocate-0.26/NEWS
/usr/share/doc/mlocate-0.26/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.x86_64 on Amazon Linux 2 using yum.