LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-26-2003, 09:30 PM   #1
waffe
Member
 
Registered: Sep 2003
Distribution: Debian
Posts: 69

Rep: Reputation: 15
Locate command does not work


I have a fresh install of Debian and when I use the command "locate", I always get this error:
locate: /var/lib/locate/locatedb: No such file or directory.

I then go to the directory /var/lib/locate, and there is no file locatedb.

I assume I need to make this db somehow.

Anyone?
 
Old 09-26-2003, 09:44 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Anytime you install/remove something from the system, it's necessary to keep the database of installed files current if you want the locate command to work. The command is updatedb, which usually requires root privilege to run. So, su to root, run the command updatedb, then try locate whatever again. Be prepared to wait a minute or two for updatedb to finish, depending on how large your set of installed files is.
 
Old 09-26-2003, 09:54 PM   #3
waffe
Member
 
Registered: Sep 2003
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks a billion * billion. Really hard to find stuff without this function.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Locate command matt1982 Linux - General 3 01-08-2005 11:22 PM
How to use locate command MartinOG Linux - Newbie 3 06-07-2004 01:59 PM
using locate command stabu Linux - Newbie 6 03-26-2004 04:13 AM
What command will locate a particular.. cbjhawks Linux - General 1 03-21-2004 08:07 AM
locate command not present?? shaggy112 Linux - Software 3 07-23-2003 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration