Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-18-2006, 06:09 PM
|
#1
|
LQ Newbie
Registered: Jul 2006
Location: Sydney, Australia
Distribution: Red Hat 7.2, 8 and 9
Posts: 10
Rep:
|
command locate not available
When my friend issued the "locate" command, it returned the following output. How should I fix it?
//////////////////////////////////////////
# locate ls
warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory
warning: You need to run the 'updatedb' command (as root) to create the database.
//////////////////////////////////////////
|
|
|
07-18-2006, 06:23 PM
|
#2
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
The answer is right in front of you. Your friend should run "updatedb" so that /var/lib/slocate/slocate.db is created. Once thats done, your friend can then use locate. 
|
|
|
07-18-2006, 06:23 PM
|
#3
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
First "su" to root, and then run the "updatedb" command. Just as the message says.
|
|
|
07-18-2006, 06:26 PM
|
#4
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
On my FC5 boxen, that is now part of the mlocate package. I seem to recall it being slocate on previous installs.
Try installing it with yum...
yum install mlocate
then, update the database so it can find things with the command:
updatedb
|
|
|
All times are GMT -5. The time now is 12:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|