Wednesday, 22 February 2012

How To Remove Packages With RPM "Error: ... Specifies Multiple Packages "

Simple steps to remove multiple packages installed on your linux box

Code Snippet
  1. rpm -qa | grep e2fsprogs*
End of Code Snippet

This gives...
e2fsprogs-libs-1.39-15.el5
e2fsprogs-libs-1.39-15.el5
e2fsprogs-devel-1.39-15.el5
e2fsprogs-1.39-15.el5
e2fsprogs-devel-1.39-15.el5


You will see a duplicate files e2fsprogs-libs-1.39-15.el5 and gets the following error
error: "e2fsprogs-libs-1.39-15.el5" specifies multiple packages


You can solve this problem with the command below..
Code Snippet
  1. rpm -e --allmatches e2fsprogs-libs-1.39-15.el5
End of Code Snippet

No comments: