LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-21-2002, 09:05 PM   #1
kaidoggy
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat Linux 7.1
Posts: 18

Rep: Reputation: 0
Uninstalling RPMs in RH8.0


For some strange reason I am unable to uninstall RPMs. I never had a problem with other redhat versions, only 8.0.
RPMs install like a charm but when you try to uninstall them it says the rpm is not installed. Anyone have any ideas?
 
Old 10-22-2002, 12:10 AM   #2
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Rep: Reputation: 30
Are u performing this as root? Do you have the correct RPM name? To make sure you can do

rpm -q -a

this will show all rpms currently installed and you should be able to uninstal them with

rpm -e thenameofrpm

Gonus
 
Old 10-22-2002, 05:26 AM   #3
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 55
you can try
rpm -qa name
and it will return all the rpms with this name, it doesn't have to be the exact name, first three letters is enough.
remember for using rpm -e you have to put only the rpm name, without .i*86.rpm.
e.g
rpm -i whatever.i586.rpm
rpm -e whatever
 
Old 10-22-2002, 06:54 AM   #4
Leffe
LQ Newbie
 
Registered: Apr 2002
Distribution: RH X
Posts: 21

Rep: Reputation: 15
If aizkorri's answer didn't help you.
Give us your error messages and exactly what you are typing.
 
Old 10-22-2002, 08:45 AM   #5
kaidoggy
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat Linux 7.1
Posts: 18

Original Poster
Rep: Reputation: 0
Unhappy

To install I've typed rpm -ivh name.rpm
The install always says 100% complete. When I try uninstalling it by typing rpm -e name.rpm it says "rpm not installed"
When I type rpm -qa name it just gives me a prompt as if it found nothing. Maybe my problem is installing, not uninstalling. It says it installed but maybe it doesn't actually do anything. I never had this problem with older RH versions.
 
Old 10-22-2002, 08:46 AM   #6
kaidoggy
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat Linux 7.1
Posts: 18

Original Poster
Rep: Reputation: 0
And yes, I'm logged in as root.
 
Old 10-22-2002, 08:58 AM   #7
Leffe
LQ Newbie
 
Registered: Apr 2002
Distribution: RH X
Posts: 21

Rep: Reputation: 15
rpm -qa|egrep name|xargs
Check that it is correct. If it is, do.
rpm -qa|egrep name|xargs rpm -e
Also, I'm still not seeing any messages.
What _Exactly_ are you typing?
 
Old 10-22-2002, 09:48 AM   #8
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 55
It could be that the -qa flag works like locate and it gives back what in the database is, so it will give real results when you update this db or restart the system.

Quote:
Originally posted by kaidoggy
When I try uninstalling it by typing rpm -e name.rpm it says "rpm not installed"
you have to use -e only with the name of the package
rpm -e name

If nothing of this helps, you should try to install, and uninstall one other package. The error could be in the package you're trying to install. BTW, what kind of package is it?
 
Old 10-24-2002, 01:53 PM   #9
kaidoggy
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat Linux 7.1
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for all of the help.
I this issue has happened when I tried to install Bastille and a java plugin for my web browser...Mozilla.
When I installed each of these packages my system first acted as if nothing had changed. When I try to delete the RPMs using the RPM -e option I receive an error stating that this cannot be completed because the paceage is not installed. When I attempt to reinstall I receive an error stating that this pacage cannot be installed becasue ti is already installed.
Again thanks for all of the help,
Michael
 
Old 10-25-2002, 05:16 AM   #10
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 55
well, I really don't know what can it be, the only thing I would do is look for a newer package of Bastille with the -U option
rpm -i -U Bastille-whatever.rpm
or try to install the old one using --force option
rpm -i --force Bastille-whatever.rpm
good luck!
 
Old 10-25-2002, 05:28 AM   #11
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 55
look for a newer version and after that install it using the -U option
 
Old 10-25-2002, 08:17 AM   #12
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
Don't add the .arch.rpm to the command when you do -e
 
  


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
Uninstalling RPMS SuSE_User Linux - Software 2 01-31-2004 02:51 AM
uninstalling/reinstalling prob with RPMs olllllo Linux - Software 6 12-04-2003 03:54 PM
Uninstalling RPMs JimmyJ Linux - Newbie 3 06-18-2003 12:20 PM
RH8.0,default rpms? xcras Linux - Newbie 1 03-12-2003 06:41 AM
Red Hat RPMs vs Mandrake RPMs pioniere Linux - Distributions 4 02-27-2003 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:28 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