LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-03-2006, 09:26 AM   #1
drokmed
Member
 
Registered: Dec 2005
Location: St Petersburg, FL, USA
Posts: 220

Rep: Reputation: 31
Need to force rpm to uninstall an app, refuses


I have a program that has stopped working.

When I try to uninstall it (rpm -e), rpm claims it is not installed.

When I try to re-install it (rpm -i, U or F), rpm claims it's already installed.

ARGH! I manually removed the app's files/directories, but rpm still claims it's installed.

How do I force rpm to remove this app, so I can re-install it?

BTW The app is webmin...

Thanks for your time!
 
Old 07-03-2006, 09:48 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Do you run rpm -e webmin, rpm -e webmin-<version>, or rpm -e webmin-<version>.rpm? Try second, I guess. Also try rpm -i --force and rpm -e --force on it. After first it will be installed, after second - hopefully, removed.
 
Old 07-03-2006, 09:59 AM   #3
drokmed
Member
 
Registered: Dec 2005
Location: St Petersburg, FL, USA
Posts: 220

Original Poster
Rep: Reputation: 31
Thanks for the reply. I've tried all variations I can think of:

rpm -e --force --allfiles webmin-1.270-1.noarch.rpm

Also tried -i, -U and -F with and without --force and --allfiles.

Also tried --justdb too.

DOH, I should'a said I'm running CentOS 4.3 latest with all patches installed.

I'm about ready to install webmin from source, but my rpm db for that app will still be messed up. I need to repair the rpm db I'm guessing
 
Old 07-03-2006, 10:04 AM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
What about
rpm --force -e webmin-1.270-1
?
 
Old 07-03-2006, 11:15 AM   #5
drokmed
Member
 
Registered: Dec 2005
Location: St Petersburg, FL, USA
Posts: 220

Original Poster
Rep: Reputation: 31
Tried that, tried everything I could find.

Tried -vv -rebuilddb too..

Screw it, I just installed the app from source, works fine now. To hell with rpm, after all these years, it still sucks.
 
Old 07-09-2006, 05:39 PM   #6
kalico
LQ Newbie
 
Registered: Jun 2005
Location: the beautiful Pacific Northwest
Distribution: Fedora Core 3
Posts: 28

Rep: Reputation: 15
This might help someone....I had the same problem, and --force can only be used on install (so said the error message ) but I did finally get it to uninstall when I listed EVERY file separately.

I did qa/grep first to get the list of files, copied it to a text editor and took out all the line returns, making a long list with just a space between each item.

Pasted it back into the command line as part of

rpm -e <long list of files>

...and voila! it was uninstalled. What a relief, after much frustration. Hope that helps someone!

Last edited by kalico; 07-09-2006 at 05:41 PM.
 
Old 07-10-2006, 09:42 AM   #7
drokmed
Member
 
Registered: Dec 2005
Location: St Petersburg, FL, USA
Posts: 220

Original Poster
Rep: Reputation: 31
I was thinking of doing something like that, but I was hoping rpm had a *smarter* solution.

Thanks for that reply, I'll keep that in mind the next time rpm takes a dump on me
 
  


Reply



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
Force uninstall? viniosity Debian 1 06-10-2006 06:34 PM
counter part of "rpm -ivh --force kernel....rpm in slackware b0nd Slackware 2 01-28-2006 07:46 PM
How do I force an older rpm to install over a newer rpm of wine onyx Linux - Software 4 02-20-2004 12:44 AM
force uninstall by rpm Thinkgeekness Linux - General 1 10-14-2003 01:34 PM
A few newbie quesitons about RedHat 9. XMMS freezed up, how can I force kill the app sabaka Linux - Software 8 10-03-2003 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:23 PM.

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