You are not logged in.

#1 2012-08-04 22:30:16

bjackman
Member
Registered: 2011-12-27
Posts: 32

I added a page for "locate" ...

https://wiki.archlinux.org/index.php/Locate

I was wondering if you guys could briefly check I haven't written anything incorrect or stupid in there as I'm a newb: I just noticed I didn't have the "locate" unix tool on my system, googled how to get it, and then thought it should be on the wiki so I put it there.

I also put up a tiny page for findutils, and made "mlocate" redirect to "locate"

Offline

#2 2012-08-04 23:06:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,431

Re: I added a page for "locate" ...

Not sure if the findutils info is useful; you can always use pkgfile to see which package has the tool you are looking for:
* https://wiki.archlinux.org/index.php/FA … is_X_in.3F
* https://wiki.archlinux.org/index.php/Pkgfile

As for the 'locate' page, you can add that /etc/updatedb.conf has some useful info.
I'm not sure you know that locate on Arch doesn't search certain paths:

PRUNEPATHS = "/afs /media /mnt /net /sfs /tmp /udev /var/cache /var/lib/pacman/local /var/lock /var/run /var/spool /var/tmp"

If you're sure you want to use 'locate' to search in e.g. /var/lib/pacman/local , you should remove that path from the updatedb.conf file.

Offline

#3 2012-08-04 23:06:56

Raynman
Member
Registered: 2011-10-22
Posts: 1,094

Re: I added a page for "locate" ...

Note: Without google you could have discovered this using `pkgfile locate` or possibly `pacman -Ss locate`.

About the wiki page: the mlocate package installs a daily update script for cron, so you don't have to do any extra work (just have crond running).

Nitpicking: the first paragraph describes locate in general, but specifically refers to the mlocate.db file.

Offline

#4 2012-08-11 08:59:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,431

Re: I added a page for "locate" ...

karol wrote:

Not sure if the findutils info is useful

Findutils page removed / redirected.

Offline

Board footer

Powered by FluxBB