LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-06-2005, 09:06 AM   #1
brianetilley
LQ Newbie
 
Registered: Jul 2003
Location: Edmonton
Distribution: SuSE 9.3 Debian 3.1
Posts: 10

Rep: Reputation: 0
missing commands


Hi,

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

Brian
 
Old 12-06-2005, 10:02 AM   #2
Randall Slack
Member
 
Registered: Feb 2005
Location: Rotterdam, The Netherlands
Distribution: Debian - Ubuntu
Posts: 219

Rep: Reputation: 30
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
 
Old 12-06-2005, 10:11 AM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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;

PATH=$PATH:/path/to/dir-containing-find && export PATH

PATH=$PATH:/path/to/dir-containing-locate && export PATH

PATH=$PATH:/path/to/dir-containing-updatedb && export PATH

Keep in mind you need to su to root to run updatedb.
 
Old 12-06-2005, 12:54 PM   #4
onjoo
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Suse 10, Suse-factory , RHEL4, SLES9, SLED10
Posts: 380

Rep: Reputation: 30
Command "locate" is part of find-utils -package and it can be installed easy through yast, but its not part of default installation.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing commands lPrentice Linux - Newbie 4 05-24-2005 12:14 PM
SUSE 9.0 Commands - Missing? Mnemen Linux - Newbie 8 06-17-2004 02:10 PM
missing network commands dalerobertson Linux - Networking 3 05-02-2004 07:50 AM
Missing Commands Titus28 Slackware 3 08-13-2003 05:12 AM
RH 7.3 missing commands beckwith Linux - Software 2 11-15-2002 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration