LinuxQuestions.org
Register a domain and help support LQ
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 09-09-2004, 07:19 PM   #1
pelcito
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
How to delete a corrupted RPM?


Hi,

I have troubles with a corrupted RPM that i try to delete.

I can't uninstall it, i can't install it again, i can't update. It there and doesn't want to go out!.

If i want to uninstall it:
[root@linuxpel root]# rpm -e wine
error reading information on service wine: No such file or directory
error: %preun(wine-20040813-1rh9winehq) scriptlet failed, exit status 1

If i want to install it:
[root@linuxpel Programas]# rpm -i wine-20040813-1rh9winehq.i686.rpm
package wine-20040813-1rh9winehq is already installed


What can i do?
 
Old 09-09-2004, 11:59 PM   #2
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 37
Try installing again with
Code:
 rpm -ivh --force wine-20040813-1rh9winehq.i686.rpm
or
Code:
 rpm -ivh --replacepkgs wine-20040813-1rh9winehq.i686.rpm
Once it's installed properly, you should be able to uninstall

Also might be a good idea to download the rpm again - maybe it was corrupted
 
Old 09-10-2004, 02:17 AM   #3
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
try just updating the rpm database.

i'm thinking something like:

rpm -e --justdb wine

might work for you as, if i'm reading the manpage correctly, it will just delete the package from the database only.

seemed to work for me while testing on faac.

i could still call up the faac program but rpm -qa | grep faac showed no output (no packages found with faac in the package name).

Last edited by megaspaz; 09-10-2004 at 02:21 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete files that won't delete? di11rod Linux - Security 7 10-19-2005 09:14 PM
How do you delete a corrupted file or directory? BrianK Linux - General 8 10-23-2004 12:33 PM
How to fix corrupted RPM database? Cygnus78 Linux - General 2 05-19-2004 07:26 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 02:46 AM
can reinstall the rpm package without delete the rpm package eye Red Hat 1 10-20-2003 07:53 AM


All times are GMT -5. The time now is 11:22 PM.

Main Menu
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