Jump to content

where did locate go?


papaschtroumpf
 Share

Recommended Posts

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:

 

Me too, confuses me when I find a system with locate or mlocate. Solved easily though with:

 

ln -s /usr/bin/mlocate /usr/bin/slocate

 

or similar for locate if the system has locate.

Link to comment
Share on other sites

The app probably changed, do:

 

rpm -ql mlocate | grep bin | grep locate

 

and then see what the app is called, if it's mlocate, slocate or locate. And then symlink if you prefer to use what you got used to.

Link to comment
Share on other sites

slocate is a secure version of locate, but that doesn't mean you can't or shouldn't run locate as non-root. In some instances, locate is actually slocate, it's simply named differently (this depends on the distribution, I think) for ease of use.

Link to comment
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...
 Share

×
×
  • Create New...