Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
|
 |
02-25-2005, 03:50 PM
|
#1
|
LQ Newbie
Registered: Jan 2005
Posts: 20
Rep:
|
Help with rpm
I don't think I'm using rpm correctly. I've got RedHat 9 and I've tried to install wine and a trial version of VMwareWorkstation -- following the directions as closely as I could.
Each install had problems, and ended up with a partial installation -- I got dependecy error messages during the installations -- but that's a question for another time.
Right now I want to uninstall both packages. I am operating as the superuser. When I input rpm -q I get the response that both packages are installed. When I try to uninstall them I get an error message. I provide the following dialog with my computer as an example:
# rpm -q VMWareWorkstation
WMwareWorkstation-4.5.2-8848
# rpm -e WMwareWorkstation-4.5.2-8848
error: %preun(VMwareWorkstation-4.5.2-8848) scriplet failed, exit status 127
#
So what does this mean? And, what do I do about it?
Thanks,
|
|
|
02-25-2005, 03:52 PM
|
#2
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
IIRC, you just specify the name, not the version, to uninstall...i.e.:
rpm -e VMWareWorkstation
but it's been a LONG time since I last used deadrat package manager.
|
|
|
02-25-2005, 03:57 PM
|
#3
|
LQ Newbie
Registered: Jan 2005
Posts: 20
Original Poster
Rep:
|
When I do that (rpm -e <just the name>) I get the same response for trying to uninstall VMwareWorkstation as I mentioned above. When I type rpm -e wine I get:
-bash: rpm: command not found
|
|
|
02-25-2005, 05:17 PM
|
#4
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
Quote:
Originally posted by tgreiner
When I do that (rpm -e <just the name>) I get the same response for trying to uninstall VMwareWorkstation as I mentioned above. When I type rpm -e wine I get:
-bash: rpm: command not found
|
You need to be root...
|
|
|
02-25-2005, 06:32 PM
|
#5
|
LQ Newbie
Registered: Jan 2005
Posts: 20
Original Poster
Rep:
|
I am doing this as root.
|
|
|
02-26-2005, 12:01 AM
|
#6
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Since its a broken package try removing it using "rpm -e --noscripts packagename"
Last edited by reddazz; 03-01-2005 at 12:31 AM.
|
|
|
02-28-2005, 09:37 AM
|
#7
|
LQ Newbie
Registered: Jan 2005
Posts: 20
Original Poster
Rep:
|
rpm -e --noscritps <name>
successfully removed the package.
Thanks
|
|
|
03-01-2005, 12:31 AM
|
#8
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
kool 
|
|
|
All times are GMT -5. The time now is 09:28 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
|
|