LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-15-2004, 06:04 PM   #1
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Rep: Reputation: 30
updatedb


What is the updatedb equivilent in SuSE 9.1?
 
Old 08-15-2004, 06:16 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,739

Rep: Reputation: 298Reputation: 298Reputation: 298
SuSE uses updatedb.
 
Old 08-15-2004, 07:06 PM   #3
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
do i have to install it??
 
Old 08-15-2004, 08:40 PM   #4
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
It should come as part of the base install.
 
Old 08-16-2004, 05:26 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,739

Rep: Reputation: 298Reputation: 298Reputation: 298
To find out where it's installed, open a terminal and enter this command: which updatedb. Bash should show you the path to updatedb.
 
Old 08-16-2004, 05:57 PM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
You have to be root to run it...have you tried that?

Also see: man locate, because I think there's a parameter you can pass to that to do the same as updatedb.
 
Old 08-16-2004, 06:19 PM   #7
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
that's what got me...i tried most of those things.

miked@linux:~> which updatedb
miked@linux:~> su
Password:
linux:/home/miked # which updatedb
linux:/home/miked # updatedb
bash: updatedb: command not found
linux:/home/miked # whereis updatedb
updatedb:
linux:/home/miked #

i'm not too sure what else to try?
 
Old 08-16-2004, 08:26 PM   #8
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
Type locate. If the program runs, then you should also have updatedb, as they are part of the same package.
Code:
find / -name updatedb
to search the system for the file.
 
Old 08-17-2004, 12:37 AM   #9
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
When you become root by invoking "su", you only get to operate with root's permissions - not with root's environment.

To become root with root's environment you need to invoke:
su -

Now when you invoke "which updatedb" or "whereis updatedb" you will search root's default path instead of your own.
 
Old 08-19-2004, 12:32 PM   #10
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
thank you idaho!
 
Old 08-25-2004, 05:09 PM   #11
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
distro: SuSE 9.1 personal

I tried to invoke su - but same results

miked@linux:~> su -
Password:
linux:~ # which updatedb
linux:~ # whereis updatedb
updatedb:
linux:~ #

i cannot seem to use updatedb?

any ideas?
 
Old 08-25-2004, 06:59 PM   #12
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
In SuSE 9.0 it was installed in /usr/bin by default, which should be in your path. If you can't find it with "which" then your path might be messed up...it's one of the basic parts of a Linux system, so it almost definately would have been installed.
 
Old 08-26-2004, 01:20 AM   #13
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
On my Suse 9.1 system, updatedb is lives in /usr/bin -- J.W.
 
Old 08-29-2004, 11:10 AM   #14
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Original Poster
Rep: Reputation: 30
Well, after going without updatedb for sometime now I have to ask for more help.

Here is part of my /usr/bin:

-rwxr-xr-x 1 root root 16999 2004-04-05 18:58 tty
-rwxr-xr-x 1 root root 6913 2004-04-05 17:09 tzselect
-rwxr-xr-x 1 root root 46824 2004-04-05 15:56 udevinfo
-rwxr-xr-x 1 root root 10016 2004-04-06 06:17 ul
lrwxrwxrwx 1 root root 4 2001-07-02 10:30 uncompress -> gzip
-rwxr-xr-x 1 root root 23523 2004-04-05 18:58 unexpand
-rwxr-xr-x 18 root root 1582 2004-04-06 11:42 uninstaller
-rwxr-xr-x 1 root root 29281 2004-04-05 18:58 uniq
-rwxr-xr-x 1 root root 17350 2004-04-05 18:58 unlink
-rwxr-xr-x 1 root root 162556 2004-04-05 18:30 unrar
-rwxr-xr-x 1 root root 10263 2004-04-05 18:25 unsq
-rwxr-xr-x 1 root root 109284 2004-04-05 18:11 unzip
-rwxr-xr-x 1 root root 51400 2004-04-05 18:11 unzipsfx
-rwxr-xr-x 1 root root 20060 2004-04-05 18:58 uptime
-rwxr-xr-x 1 root root 14794 2004-04-06 14:21 us428control
-rwxr-xr-x 1 root root 19165 2004-04-05 18:58 users
-rwxr-xr-x 1 root root 13634 2004-04-06 14:21 usx2yloader
-rwxr-xr-x 1 root root 7604 2004-04-05 18:10 utmpdump
-rwxr-xr-x 1 root root 4376 2004-04-05 18:07 uuidgen
-rwxr-xr-x 1 root root 1488 2004-04-06 11:06 uz
-rwxr-xr-x 1 root root 14516 2004-04-05 18:09 vacation
-rwxr-xr-x 1 root root 470 2004-04-05 18:09 vaclook
-rwxr-xr-x 1 root root 16138 2004-04-06 13:03 vcut
-rwxr-xr-x 1 root root 90616 2004-04-05 18:58 vdir
lrwxrwxrwx 1 root root 3 2001-07-02 10:34 vi -> vim
lrwxrwxrwx 1 root root 3 2001-07-02 10:34 view -> vim
lrwxrwxrwx 1 root root 8 2001-07-02 10:34 vim -> /bin/vim
lrwxrwxrwx 1 root root 3 2001-07-02 10:34 vimdiff -> vim
-rwxr-xr-x 1 root root 1047 2004-04-05 20:03 vimtutor
-r-xr-xr-x 1 root root 27592 2004-04-05 18:11 vmstat
-rwxr-xr-x 1 root root 5919 2004-04-05 18:19 volname
-rwxr-xr-x 1 root root 24736 2004-04-06 13:03 vorbiscomment
-rwxr-xr-x 1 root root 12915 2004-04-06 14:21 vxloader


I don't see the executable there?

When I try to find the executable I get:

linux:~ # find / -name updatedb
find: . changed during execution of find
linux:~ #

Trying the locate command I get:

linux:~ # locate updatedb
-bash: locate: command not found
linux:~ #

My guess, since a user said that these where part of the same package, is that updatdb is not installed? This is from a fresh, default installation of SuSE 9.1 Personal. Why would it not be installed?

Any ideas? Which package should I install to get updatedb working?

Thanks!
 
Old 08-29-2004, 11:16 AM   #15
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You may want to do a search in YaST to see if it is installed. There is a security option setting on whether you want updatedb to run as root or as user nobody. Some people consider it a security risk to allow updatedb to run as root, which would enable locating files that normal users don't have access to.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What's the difference between 'updatedb' and 'updatedb&' ?? DreameR-X Linux - Newbie 4 12-18-2004 04:36 PM
problems with updatedb TMVanatta Linux - Software 1 11-07-2004 01:28 AM
updatedb? nexx_au Fedora 2 04-06-2004 10:17 PM
updatedb for Win32 ghight Linux - Software 6 03-31-2004 02:23 PM
updatedb pezplaya Fedora 2 01-05-2004 05:32 PM


All times are GMT -5. The time now is 04:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration