locate command not found

linux locate: command not found

Posted on 2014-02-11 11:12 牧羊岛 阅读( 943) 评论( 0) 编辑 收藏

装好系统发现使用locate查找文件,提示

-bash: locate: command not found

yum install locate 无效,看来locate不是软件名称

[root@centos64 ~]# yum search locate 

============================= N/S Matched: locate ==============================
mlocate.x86_64 : An utility for finding files by name
which.x86_64 : Displays where a particular program in your path is located

[root@centos64 ~]# yum install mlocate

[root@centos64 ~]# locate mysql
locate: can not stat () `/var/lib/mlocate/mlocate.db': 没有那个文件或目录

[root@centos64 ~]# updatedb

完成。

你可能感兴趣的:(locate command not found)