-bash: locate: command not found

“locate” command is use to index and quickly search for files on your system. If you receive the error message

-bash: locate: command not found

which indicates that the package “slocate” isn’t installed on your server. First check the output of

rpm -qa | grep slocate

if you don’t see any output it states that “slocate” is not installed on your server. You should be able to install slocate using

yum install slocate

as root. Once installed, execute “updatedb” to keep the database up-to-date.

This entry was posted on Tuesday, October 6th, 2009 and is filed under Linux Administration. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.