Pre-Flight Check
- These instructions are intended specifically for installing mlocate on CentOS 7.
- I’ll be working from a Liquid Web Self Managed CentOS 7 server, and I’ll be logged in as root.
Step 1: Install mlocate
As a matter of best practice we’ll update our packages:
yum -y update
Then let’s install mlocate and any required packages:
yum -y install mlocate
Step 2: Updating mlocate
The following command will update the search databases:
updatedb
mlocate installs a cron job that will run daily to update search databases at:
/etc/cron.daily/mlocate.cron