Hello, From: Thibaut Cousin [mailto:linux@thibaut-cousin.net] Sent: Wednesday, March 31, 2004 3:41 PM
- locate and slocate are different. The latter is supposedly secure, i.e. it handles permission on files. locate is available with the package "findutils-locate", while slocate indeed seems to be missing in SUSE.
ups :-) ... ok !
- You never, ever have to launch updatedb manually. It's run automatically by Cron every day and after each reboot.
that may be right, but mostly i use locate after installing a program. to find all corresponding files i need to run updatedb afterwards! i had never noticed that updatedb is running as cron, but maybe it's right :) ... i don't know...
- Whereis has a very specific use which has nothing to do with locate. Whereis only looks for programs, manpages and source files related to a keyword, while locate manages a complete database of all files on the system but knows nothing of their type.
yes, but with both programs you can search for files, that's what i meant! regards frank
Le mercredi 31 Mars 2004 16:07, Frank.Herchet@boschrexroth.de a écrit :
- You never, ever have to launch updatedb manually. It's run automatically by Cron every day and after each reboot.
that may be right, but mostly i use locate after installing a program. to find all corresponding files i need to run updatedb afterwards! i had never noticed that updatedb is running as cron, but maybe it's right :) ... i don't know...
It's right, I promise. ;-) And because updatedb takes a lot of resources when it's run, some people complained that their computer was very slow the first minutes after boot, and they didn't know why because they didn't know what updatedb was. So most distributions removed locate/updatedb from the default installation.
- Whereis has a very specific use which has nothing to do with locate. Whereis only looks for programs, manpages and source files related to a keyword, while locate manages a complete database of all files on the system but knows nothing of their type.
yes, but with both programs you can search for files, that's what i meant!
True enough. But there are lots of file that you will never find with whereis, so it was a warning not to trust it for a generic search. Regards, -- Thibaut Cousin Web : http://www.thibaut-cousin.net
The Wednesday 2004-03-31 at 16:07 +0200, Frank.Herchet@boschrexroth.de wrote:
- You never, ever have to launch updatedb manually. It's run automatically by Cron every day and after each reboot.
that may be right, but mostly i use locate after installing a program. to find all corresponding files i need to run updatedb afterwards! i had never noticed that updatedb is running as cron, but maybe it's right :) ... i don't know...
You don't need to do that. Suppose you installed package noname.rpm - or even before installing it: just run "pin noname" and it will tell you straight away if it is installed or not (and when), and exactly what files it contains, together with the contens of the readme files. If there is no package of that name, then it will search on the entire dvd listing what package or packages suply that file. Isn't it cute? :-p -- Cheers, Carlos Robinson
participants (3)
-
Carlos E. R.
-
Frank.Herchet@boschrexroth.de
-
Thibaut Cousin