Jump to content
papaschtroumpf

where did locate go?

Recommended Posts

I did a clean install of Spring 2007 and it looks like my system doesn't have the "lcoate" command anymore.

I reied as root, and I try looking for it in /sbin but it's not there

 

is it deprecated? is it an additional package not installed by default?

Share this post


Link to post
Share on other sites

It's not included by default in 2007.1 Spring.

 

To get it, install the mlocate package available from the standard repositories.

Share this post


Link to post
Share on other sites
It's not included by default in 2007.1 Spring.

 

To get it, install the mlocate package available from the standard repositories.

 

 

yeah thanks!

 

 

Why is it not included through? is there a better way to find files now? Is that what that beagle icon that I haven't yet played with is about? how about command line

 

Also I assume installing the package automagically set a cron job to run updatedb and all that jazz?

Share this post


Link to post
Share on other sites

According to the 2007.1 Errata, it was left out because of space considerations:

 

Errata note about mlocate package

 

I don't know if it automatically sets up a cron job to update the database (but I doubt it). My machines are never on 24x7, so I just update the database manually using the updatedb command.

Share this post


Link to post
Share on other sites

As Mandriva is desktop oriented, I guess that they voluntarily left mlocate out of the default installation ( I don't believe their "lack of space" argument. My DVD still has some 400 MB of free space left!). Now that there are tools like beagle, they probably don't expect people to know of and/or use mlocate. Let's face it: Many people are happy that they can do their searches without using the command line, which is kind of scary and ugly... :rolleyes:

Share this post


Link to post
Share on other sites

Beagle is hardly a replacement for mlocate... but surely it's heaven sent, after the ever infamous kat disaster! :P

Still, even beagle uses a LOT of resources... but at least it does work, and it does not crash the whole desktop randomly.

Share this post


Link to post
Share on other sites
Beagle is hardly a replacement for mlocate
Well, mlocate still can't beat a well written find - especially since find doesn't require you to update a database.

 

but surely it's heaven sent, after the ever infamous kat disaster! :P
Beagle was around before Kate [edit: Kat, rather] - I still don't know why Mandriva felt the need to re-invent the wheel on that one :screwy:

Share this post


Link to post
Share on other sites

Either that or he was thinking of a female called kate at the time ;)

 

I always have problems with find, I guess I'm not doing it right.

 

find / -name bit_of_filename

Share this post


Link to post
Share on other sites

find / -iname "*bit_of_filename*"

But obviously if you know vaguely where something is, it's better to start from somewhere other than /.

Share this post


Link to post
Share on other sites

I know, mine was a rather rough example :)

Share this post


Link to post
Share on other sites
Well, mlocate still can't beat a well written find - especially since find doesn't require you to update a database.

but mlocate is sure a helluva lot faster because it has that db.

 

and as for the database, mlocate, unlike the old slocate, takes only a matter of seconds to update it's database as it does it incrementally. slocate on the other hand, every time, rebuilds it from scratch when it updates. By default in just about every distro, the slocate/mlocate update is usually run at midnight.

 

James

Share this post


Link to post
Share on other sites
but mlocate is sure a helluva lot faster because it has that db.
Well, I've only used slocate (never tried mlocate...I don't think), and most of the time I had to do an updatedb before locating, because I was trying to find something I had just installed :lol2:

Share this post


Link to post
Share on other sites

no, it really is space.

 

we don't manually decide whether every single package in the distro is in or out of the discs. that would take ages.

 

each package is assigned an importance level, and the first level gets on the discs first, then the second, then the third, etc...

 

and the process cuts off when it hits whatever size limit the person running mkcd specified.

 

no-one did anything specific to include or exclude mlocate from the ISO build. it just happened not to get on under this system.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...