Remove all traces of yum package

I recently came across a need to remove every trace a package makes in CentOS 7.  Yum erase didn’t entirely do the trick, so I had to get a bit more creative. My solution was to combine the repoquery and xargs commands:

repoquery -l <package_name> | xargs rm -rf

Success! Every file in the yum package was removed entirely. Complete obliteration.

Leave a Reply

Your email address will not be published. Required fields are marked *