Issue::

Sometimes we use locate command to find files and output will be like this

==
-bash: locate: command not found
==

This indicates that the “slocate” package is not installed. Install it with:

yum -y install slocate

Then update the database with:

# updatedb