maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Is there any chance of getting locate and find on os2008? (https://talk.maemo.org/showthread.php?t=22995)

Lord Raiden 2008-08-19 17:18

Is there any chance of getting locate and find on os2008?
 
I'm wondering if it's possible to get the locate and find commands added to OS2008. Those are hugely useful and I use them a lot in regular Linux and BSD.

BrentDC 2008-08-19 17:28

Re: Is there any chance of getting locate and find on os2008?
 
I think find is already there?

Code:

~ $ find --help
BusyBox v1.6.1 (2008-05-22 10:32:35 EEST) multi-call binary

Usage: find [PATH...] [EXPRESSION]


terrencegf 2008-08-19 18:29

Re: Is there any chance of getting locate and find on os2008?
 
"mlocate" is available from the "debfarm" repository. Works fine on diablo.

One-click Repository Install:

http://gronmayer.com/it/picts/install_button_small.png
debfarm

Application Manager Repository Info:
Code:

Catalog name: debfarm
Web address:  http://p.quinput.eu/debfarm/
Distribution: chinook
Components:  user


bluesubaru 2008-08-19 19:12

Re: Is there any chance of getting locate and find on os2008?
 
I use these scripts to find files easily. I run updatedb every so often to update the database; and run "locate matchingtext" to find file or directory names that match "matchingtext"

updatedb.sh
Code:

find / -print > /media/mmc2/db/locate.db
locate.sh
Code:

## script to find file from database created with updatedb.sh

grep "$1" /media/mmc2/db/locate.db | more


Benson 2008-08-19 19:57

Re: Is there any chance of getting locate and find on os2008?
 
That's busybox find, which is notably deficient vs. GNU find. I think I've seen a couple of GNU find packages; one dumped it with the name find with the prefix /usr/something/, and the other installed it with prefix /usr/, but named it gnufind. Don't have either of them on now, though...

Edit: And it becomes apparent that terrencegf already posted this; guess I scrolled right past somehow:
As for locate, mlocate is available from debfarm -- .install for the repo is http://www.gronmayer.com/it/dl.php?id=205

Lord Raiden 2008-08-19 23:57

Re: Is there any chance of getting locate and find on os2008?
 
Well, I tried bluesubaru's method and got errors about too many files open. As for terrencegf, I'll have to give that a spin later.

bluesubaru 2008-08-20 02:13

Re: Is there any chance of getting locate and find on os2008?
 
Quote:

Originally Posted by Lord Raiden (Post 215553)
Well, I tried bluesubaru's method and got errors about too many files open. As for terrencegf, I'll have to give that a spin later.

Yeah, I get that if I run updatedb when I am not root. Try it after becoming root.


All times are GMT. The time now is 14:16.

vBulletin® Version 3.8.8