View previous topic :: View next topic |
Author |
Message |
garrontmo n00b
Joined: 18 Apr 2002 Posts: 57 Location: Seattle, WA
|
Posted: Sat Apr 20, 2002 12:34 am Post subject: Locate |
|
|
I've used previous distros in which if I ever wanted to find a file, i could type "locate filename" and it would spit back every file that contained "filename". It doesnt work in gentoo. Is there something that I need to install, or is there a similar command in gentoo? |
|
Back to top |
|
|
Utoxin Guru
Joined: 19 Apr 2002 Posts: 413 Location: American Fork, UT
|
Posted: Sat Apr 20, 2002 12:35 am Post subject: |
|
|
You need to run 'updatedb' as root. |
|
Back to top |
|
|
Alowishus n00b
Joined: 18 Apr 2002 Posts: 22
|
Posted: Sat Apr 20, 2002 2:55 am Post subject: |
|
|
Yes, updatedb will do the trick, assuming you have already emerged the 'slocate' package. |
|
Back to top |
|
|
Utoxin Guru
Joined: 19 Apr 2002 Posts: 413 Location: American Fork, UT
|
Posted: Sat Apr 20, 2002 3:40 am Post subject: |
|
|
I believe that slocate is emerged during initial install. |
|
Back to top |
|
|
febisfebi Tux's lil' helper
Joined: 17 Apr 2002 Posts: 76 Location: seattle wa
|
Posted: Sat Apr 20, 2002 6:59 am Post subject: |
|
|
Utoxin wrote: | I believe that slocate is emerged during initial install. |
yep it is |
|
Back to top |
|
|
bbibber n00b
Joined: 19 Apr 2002 Posts: 16 Location: Mechelen - Belgium
|
Posted: Sat Apr 20, 2002 8:05 am Post subject: cron |
|
|
normally, the database is updated with a cron job (daily or weekly),so you don't have to do an updatedb yourself (the update operation can take a while on bigger systems). So you might want to emerge cron as well. |
|
Back to top |
|
|
ElCondor Guru
Joined: 10 Apr 2002 Posts: 520 Location: Vienna, Austria, Europe
|
Posted: Sat Apr 20, 2002 10:14 am Post subject: |
|
|
well, slocate was not emerged during (my) installing 1.1a from stage2, just the "ordinary" locate. (Just if someone else might be missing it)
btw, fcron forgets to install its documentation in /usr/share/doc/ ... but thats for another forum
ElCondor |
|
Back to top |
|
|
|