You are not logged in.
Pages: 1
Topic closed
When I was using Ubuntu, often I use locate to find files on disk, Now on Arch when I do locate says "command not found".
Do I need to install some package?
Last edited by lgeek (2012-03-11 20:19:14)
Offline
core/findutils
Pacman could have helped you with that...
ewaller@odin:~ 1001 %pacman -Ss locate
core/findutils 4.4.2-4 (base) [installed]
GNU utilities to locate files
core/mlocate 0.25-1 [installed]
Faster merging drop-in for slocate
extra/perl-file-sharedir 1.03-2
Locate per-dist and per-module shared files
ewaller@odin:~ 1002 %Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
https://wiki.archlinux.org/index.php/FA … is_X_in.3F
pkgfile is generally a better tool for this job than 'pacman -Ss' as the latter searches only package names and descriptions.
Edit:
core/findutils
Nope, findutils has 'find', mlocate has 'locate'.
Last edited by karol (2012-03-11 20:05:01)
Offline
I have findutils installed. And locate doesn't work...
Do I need to install any other package?
Offline
There is a very useful command called "whereis". You use it like this:
[richard@localhost ~]$ whereis firefox
firefox: /usr/bin/firefox /usr/lib/firefoxThe help for it looks like this:
[richard@localhost ~]$ whereis -h
Usage:
whereis [options] file
Options:
-f <file> define search scope
-b search only binaries
-B <dirs> define binaries lookup path
-m search only manual paths
-M <dirs> define man lookup path
-s search only sources path
-S <dirs> define sources lookup path
-u search from unusual enties
-V output version information and exit
-h display this help and exit
See how to use file and dirs arguments from whereis(1) manual.Last edited by RichAustin (2012-03-11 20:05:10)
Offline
Thanks for the information ![]()
Offline
There is a very useful command called "whereis".]
You have to have the package (e.g. mlocate) installed, otherwise 'whereis' won't help you at all.
Offline
RichAustin wrote:There is a very useful command called "whereis".]
You have to have the package (e.g. mlocate) installed, otherwise 'whereis' won't help you at all.
I must admit karol I didn't know that.
Offline
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
use nosr for searching offline, kittyfile is just a horribly badly written naive webapp to search the same filedb. ( I wrote it in like 15 mins just to play with cherrypy
)
Last edited by Mr.Elendig (2012-03-11 20:16:14)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
kittyfile is just a horribly badly written naive webapp to search the same filedb
Ah, OK thanks ... and sorry. I think I broke teh kitty - it's' not working for me anymore ![]()
@lgeek
Please remember to mark the thread as solved: https://bbs.archlinux.org/viewtopic.php?id=130309
Offline
Mr.Elendig wrote:kittyfile is just a horribly badly written naive webapp to search the same filedb
Ah, OK thanks ... and sorry. I think I broke teh kitty - it's' not working for me anymore
Nha, it was just doing a db update, it is done now.
Last edited by Mr.Elendig (2012-03-11 20:23:35)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
I had to do that.. But after all it worked
Offline
kittyfile seems to have the same limitation as http://arm.konnichi.com/find/index.php? … n%2Flocate - only absolute filenames are currently supported.
Offline
kittyfile seems to have the same limitation as http://arm.konnichi.com/find/index.php? … n%2Flocate - only absolute filenames are currently supported.
wrong, read up on regex/globbing
eg */bin/locate and *pacman etc works fine ![]()
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
'*pacman' works indeed. This kitty is full of surprises :-)
Offline
So 'mlocate' is not installed by default anymore? I thought on my initial install that it was. Installed via core install media this time and didn't think to check for it.
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
So 'mlocate' is not installed by default anymore? I thought on my initial install that it was. Installed via core install media this time and didn't think to check for it.
Since 3 years ago or something.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
This
sudo pacman -S mlocate
sudo updatedb
locate whateverOffline
Closing this ancient thread.
Offline
Pages: 1
Topic closed