Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have 2 packages in my yum that I would like to get rid of. When I list the installed packages they appear in the output, and when I try to erase them, yum seems to think it's ok and proceeds with the removal. However, they never go away, they stay in the list and I can erase them 42 times and nothing happens. There is no error message. I've tried rebuilding the rpm database with:

rm -rf /var/lib/rpm/__db.00* rpm --rebuilddb

And that didn't help. Example:

$ yum erase eclipse-ecj.x86_64
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package eclipse-ecj.x86_64 1:3.2.1-19.el5.centos set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================
 Package               Arch             Version                            Repository           Size
=====================================================================================================
Removing:
 eclipse-ecj           x86_64           1:3.2.1-19.el5.centos              installed            23 M

Transaction Summary
=====================================================================================================
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : eclipse-ecj                                                                   1/1

Removed:
  eclipse-ecj.x86_64 1:3.2.1-19.el5.centos

Complete!
$ yum erase eclipse-ecj.x86_64
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package eclipse-ecj.x86_64 1:3.2.1-19.el5.centos set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================
 Package               Arch             Version                            Repository           Size
=====================================================================================================
Removing:
 eclipse-ecj           x86_64           1:3.2.1-19.el5.centos              installed            23 M

Transaction Summary
=====================================================================================================
Remove        1 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Is this ok [y/N]:

Help!

share|improve this question

2 Answers 2

up vote 3 down vote accepted

I see from the above comment that the postun scriptlet is failing. You can remove it without triggering the script with:

rpm -e --noscripts eclipse-ecj
share|improve this answer
    
Found that solution before your answer and it worked. –  md1337 Apr 29 '11 at 18:27

Try "rpm -e --nodeps PACKAGENAME" - followed up with "yum clean all; yum check" and see if you get any interesting output. If you get no output, you should find that the package is gone now. If you do, then you need to follow up from there.

share|improve this answer
    
I get error: %postun(eclipse-ecj-3.2.1-19.el5.centos.x86_64) scriptlet failed, exit status 255 –  md1337 Apr 29 '11 at 15:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.