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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
08-15-2004, 06:04 PM
|
#1
|
Member
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828
Rep:
|
updatedb
What is the updatedb equivilent in SuSE 9.1?
|
|
|
08-15-2004, 06:16 PM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
SuSE uses updatedb.
|
|
|
08-15-2004, 07:06 PM
|
#3
|
Member
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828
Original Poster
Rep:
|
do i have to install it??
|
|
|
08-15-2004, 08:40 PM
|
#4
|
Member
Registered: Feb 2004
Posts: 467
Rep:
|
It should come as part of the base install.
|
|
|
08-16-2004, 05:26 PM
|
#5
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
To find out where it's installed, open a terminal and enter this command: which updatedb. Bash should show you the path to updatedb.
|
|
|
08-16-2004, 05:57 PM
|
#6
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
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.
|
|
|
08-16-2004, 06:19 PM
|
#7
|
Member
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828
Original Poster
Rep:
|
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?
|
|
|
08-16-2004, 08:26 PM
|
#8
|
Member
Registered: Feb 2004
Posts: 467
Rep:
|
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.
|
|
|
08-17-2004, 12:37 AM
|
#9
|
Member
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438
Rep:
|
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.
|
|
|
08-19-2004, 12:32 PM
|
#10
|
Member
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828
Original Poster
Rep:
|
thank you idaho!
|
|
|
08-25-2004, 05:09 PM
|
#11
|
Member
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828
Original Poster
Rep:
|
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?
|
|
|
08-25-2004, 06:59 PM
|
#12
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
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.
|
|
|
08-26-2004, 01:20 AM
|
#13
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
On my Suse 9.1 system, updatedb is lives in /usr/bin -- J.W.
|
|
|
08-29-2004, 11:10 AM
|
#14
|
Member
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828
Original Poster
Rep:
|
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!
|
|
|
08-29-2004, 11:16 AM
|
#15
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
All times are GMT -5. The time now is 07:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|