Monday, June 2, 2014

CentOS, locate and updatedb

I found out that hard way that CentOS 5.4 does not come with the commands 'locate' and 'updatedb' installed by default.  I have to say that I don't see the logic in that, but if you need them (like I did) do this:

sudo yum install mlocate
sudo /etc/cron.daily/mlocate.cron

The first line will install the commands 'locate' and 'updatedb', the second will add a daily cron job to run updatedb daily.

Enjoy!

No comments:

Post a Comment