How to install ‘locate’ on Centos

install mlocate

yum install mlocate -y

To run and find

locate httpd.conf

We can see:

locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory

Run update to fix

updatedb

Check it:

locate httpd.conf

It works)

Remove if needed daily cron

rm -fv /etc/cron.daily/mlocate.cron

Similar Posts:

    None Found

Leave a Reply

Your email address will not be published. Required fields are marked *