View previous topic :: View next topic |
Author |
Message |
garrontmo n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Utoxin Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/13197540244c9107e4aeb9d.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Alowishus n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
Utoxin Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/13197540244c9107e4aeb9d.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
febisfebi Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Simpsons/simpsons_mrburns.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
bbibber n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/d5e053263cc15dabafeda.jpg)
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 |
|
![](templates/gentoo/images/spacer.gif) |
ElCondor Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/120727650240b7b532b4f20.gif)
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 |
|
![](templates/gentoo/images/spacer.gif) |
|