Results 1 to 3 of 3
I used to be able to run locate and updatedb, but after an OpenSUSE update, they no longer work. I've reinstalled findutils and it appears to install correctly, but the ...
- 05-22-2010 #1Just Joined!
- Join Date
- May 2010
- Posts
- 1
locate and updatedb: command not found
I used to be able to run locate and updatedb, but after an OpenSUSE update, they no longer work. I've reinstalled findutils and it appears to install correctly, but the commands still don't work.
server:/tmp # rpm -Uvh --force findutils-4.2.28-24.i586.rpm
Preparing... ########################################### [100%]
1:findutils ########################################### [100%]
server:/tmp # locate
-bash: locate: command not found
server:/var/lib # updatedb
-bash: updatedb: command not found
I believe the binary is supposed to be installed in /usr/bin, but it's not there.
server:/tmp # ls /usr/bin/lo*
/usr/bin/locale /usr/bin/log_server_status2 /usr/bin/lookbib
/usr/bin/localedef /usr/bin/logname
/usr/bin/lockfile /usr/bin/look
My path looks good.
server:/etc/profile.d # $PATH
-bash: /sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin
I've tried reinstalling with yast as well. Same symptoms. Any ideas what's wrong here? I'm tempted to reinstall the OS. Thanks!
- 05-23-2010 #2Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
Bah. I just create my own scripts to do the same job.
/usr/local/bin/locate
/usr/local/sbin/updatedbCode:#!/bin/sh cat /index | grep $@
Code:#!/bin/sh find / | sort > /index
- 05-23-2010 #3
That would be a drag. I couldn't live without locate/updatedb. Aside from D-cat's advice, is it not possible to install slocate or mlocate?


Reply With Quote