SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using SuSE 9.3. When I try to use 'updatedb' I get the error message 'command not found'. I also get this error for the commands 'locate' and 'find'. I thought these commands were automatically installed when first installing the OS. I can't find any info concerning this problem...it seems that these commands should have been installed. Any suggestions greatly appreciated. Thanks
did you do "touch /var/lib/slocate/slocate.db" first before doing updatedb& as root?
if you did you might want to check if the program slocate is installed
Updatedb requires root privliges to run. Although 'command not found' indicates either the updatedb script is not installed, or it is not in your path.
First, have a look in /usr/bin for updatedb, that is where it is on my system. I would normally recommend you use loacte or find, but since they don't work, try 'which find' and which locate' Those two commands do not require special privleges as far as I know. On my system 'locate' is located in /usr/bin. Find is in the /bin directory. Look there to see if you have them.
To check your current path; at a command prompt type 'echo $PATH' ( without the quotes). That will tell what path you are currently using. There are a couple of approaches you can take at this point. You can edit your path, or add symlinks to the executable. Of course you have to find it, or install it first. I would suspect you do have the executables.
To change your path, once you locate the binary files, do the following;
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.