March 13, 2014

Remove multiple RPM packages containing the same string

To remove all RPM packages containing a similar name, search for them in your rpm db and pass the result onto an rpm -ev command:

rpm -qa | grep 'drupal' | xargs rpm -ev

Note this does not take package dependencies into account
Share:

0 comments:

Post a Comment