LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-26-2003, 01:28 AM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Question RH8.0 Install / Uninstall Issues


Okay, here's my situation. I installed the samba-2.2.7a-1.i386.rpm on my RH8.0 distro (which was also freshly installed). I installed the rpm as root and used a couple commands that come in the package (smbclient, mount.smbfs, etc). All good it seemed.

No, it wasn't all good. As soon as I logged in my regular account (not root), the bash shell said the command was not recognized when I tried to use it (smbclient specifically). So I figured, "Hey, I'm new to this. Perhaps it can't be installed by the root and used by other users!" Then I tried to uninstall the rpm as root, and that's where I ran into problems.

When I tried to uninstall the rpm, I initially tried with the following command:

# rpm -e samba-2.2.7a-1.i386.rpm

It responded by saying that this package was not installed yet. So, I tried to find some way to look and see what kind of packages were installed so I could find the correct package name. I didn't have any luck. Last time I used Linux, it was RH7.3 and it had a manager for packages that would list what was installed. RH8.0 doesn't seem to do this for any packages that aren't included with the distro.

After a little tooling around I found the package name and used the following command to remove the package:

# rpm -e samba-2.2.7a-1

And recieved the following errors:

error reading information on service smb: No such file or directory
error reading information on service smb: No such file or directory
error: %trigger(samba-2.2.7a-1) scriptlet failed, exit status 1

Now, I didn't fool with any of the files related to samba. Didn't move them or delete them or change their permissions (plus I did this on root, so permissions doesn't really matter, I assume).


----


Now given these issues, I have the following questions:

1) Why would a package installed as root not be available to non-root users? Is there a way around this?

2) How can I get a list of installed rpms on RH8.0 (GUI or shell, doesn't matter) ?

3) What could cause a failure in uninstalling an rpm just moments after its installation as described above?

4) If you have a failure uninstalling an rpm, is there a way to remove it manually so that it can be reinstalled using rpm?



Thanks in advance for any help you can offer.
 
Old 01-26-2003, 04:32 AM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
You can get a list of the packages installed by running "rpm -qa"

You can pipe it to "less" to view interactively.

I don't know why it wouldn't uninstall, unless there was a lock on a file. Maybe something in use?
 
Old 01-26-2003, 09:10 AM   #3
mhearn
Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
[ 1) Why would a package installed as root not be available to non-root users? Is there a way around this? ]

You have to install RPMs as root. They should be available, but note that sometimes root has a different path to the user. use whereis to find out where the app was installed to.

[ 3) What could cause a failure in uninstalling an rpm just moments after its installation as described above? ]

Did that RPM come from redhat? I don't know, but normally you should use the redhat-config-packages gui program to manage stuff like samba.

[ 4) If you have a failure uninstalling an rpm, is there a way to remove it manually so that it can be reinstalled using rpm? ]

You can normally --force an RPM
 
Old 01-26-2003, 11:45 AM   #4
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
Wink Return fire

Your answers were quite helpful. Thanks a bunch. They did, however, spark some other questions:

1) After finding these files, how do I add them to the "path" for other users? Is there any reason that they weren't automatically added?

2) I've used "less" before, and I have the most newbish problem with it: how do you get out of it? I can't even CNTRL-C out of something "piped" to less. I eventually have to close the shell.


Problems solved:

1) I believe that smbmount *did* have a mount already. This didn't occur to me because I had been switching back and forth between root and non-root accounts, but I never rebooted. I didn't think about the fact that the mount remained when I eventually tried to uninstall the package. Good call.

2) I tried to --force the reinstall of the package, but never though to --force the uninstallation. I'll bet that would have worked, but I can't try now cuz I just reinstalled the OS (it was a fresh install anyway).


Thanks a bunch guys.
 
Old 01-26-2003, 12:08 PM   #5
mhearn
Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
[ After finding these files, how do I add them to the "path" for other users? Is there any reason that they weren't automatically added? ]

Well, use whereis to find out where it is, then do,

export PATH=/new/path/entry:$PATH

Normally though few commands will be in places that aren't in your path, so it may be easier to simply say /sbin/smbmount or wherever it is.

You can put a line like that into /etc/profile.local normally I think, but it depends on your distro.

[ I've used "less" before, and I have the most newbish problem with it: how do you get out of it? I can't even CNTRL-C out of something "piped" to less. I eventually have to close the shell. ]

Press q Not as obvious as it sounds, I remember well
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to uninstall XMMS from RH8? seow_ming Linux - Software 5 10-09-2004 09:46 PM
Install/Uninstall issues - first kick at the can free_andrew Linux - Newbie 1 12-06-2003 01:11 AM
firstboot issues - RH8 revelation-uk Linux - Newbie 1 06-28-2003 08:19 PM
RH8.0 : Need to uninstall Apache 2 and install Apache 1 ericcarlson Linux - Software 1 02-10-2003 03:13 PM
RH8.0 PATH issues gauge73 Linux - General 2 01-27-2003 02:40 PM


All times are GMT -5. The time now is 04:36 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration