Notices


Reply
Thread Tools
dchky's Avatar
Posts: 549 | Thanked: 299 times | Joined on Jun 2010 @ Australian in the Philippines
#11
Because 'locate' has been around since long before those Unix hippies even began to start thinking about growing their hair out in to a long 'stick it to the man' pony tail. : )

I kid! - sorry if I offended anyone.

I guess for me it's familiarity, and (perhaps an incorrect) assumption that tracker was for indexing multimedia, not 'everything' starting at /
 
rcull's Avatar
Posts: 299 | Thanked: 168 times | Joined on Jun 2006 @ Wales UK
#12
You can quite easily roll your own.

updatedb as a shell script:-

Code:
find / -print > /home/user/MyDocs/updatedb

locate :-

Code:
grep "$*" /home/user/MyDocs/updatedb
__________________
Class .. : Power User,Tester,Apprentice Developer
Humor .. : [#####-----] Alignment: Gadget Junky,Grumpy old man
Patience : [##########] Weapon(s): Indifference
Agro ... : |##--------] Relic(s) : 770,N800,eee

 
ArnimS's Avatar
Posts: 1,107 | Thanked: 720 times | Joined on Mar 2007 @ Germany
#13
Originally Posted by dchky View Post
For anyone wanting to actually be able to use updatedb from the locate package, there's a tiny problem with the updatedb script.

You'll need to edit /usr/bin/gnu/updatedb

Line 208 ----> : ${find:=${BINDIR}/find}

Change this to ----> : ${find:=${BINDIR}/gfind}

Once done, gupdatedb and glocate will work as expected.

Hope this helps someone : )
I don't see how it could, as there is no 'gfind' installed, but there is a 'find' so the existing script works correctly without this change.

However that locate package *does* need fixing.
i used
mv /usr/bin/gnu/* /usr/bin
__________________
find . -name \*.mp3 -exec mplayer -quiet -shuffle "{}" +
das ist your media player, and yuu vill like it
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#14
Originally Posted by Patola View Post
Why would you install updatedb/slocate? You would have two tools that do the same thing. Tracker already indexes all the files. "tracker-files -s Files | grep -i string" locates what you want (I don't know why tracker-search does not work though).
tracker-files doesn't seem to find what I want:

Code:
Nokia-N900:~# tracker-files -s Files | grep frcode     

NOTE: Limit was reached, there are more items in the database not listed here
Nokia-N900:~# tracker-files -l 4096 -s Files | grep frcode
Nokia-N900:~# locate frcode
/home/opt/maemo/usr/lib/locate-gnu/frcode
/opt/maemo/usr/lib/locate-gnu/frcode
/usr/lib/locate-gnu/frcode
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:04.