Satellite 6 - Completely purge a package from Satellite 6 that was imported from a custom repository
We have a custom repository set up for packages that have been created in house. A new Product was defined in Satellite 6, attached to the custom repo and the repository synchronized. Recently a "bad package" was placed into the custom repo and synced into Satellite. The issue was discovered and rectified in the custom repo. Does anyone have an idea how to get rid of the "bad package" from Satellite 6?
We have tried removing the package via the GUI by navigating to Products > MyProductName > MyCustomRepo, clicking the Manage Packages button, selecting the offending package and clicking the Remove Packages button. What we find is that the package still exists in several places on the Satellite Server and any attempts to sync the repo again seems to only recreate the links to the "bad version" of the package within Satellite while not importing the "good package".
Additional background on the "bad package":
The package in question was not bad in and of itself. After it was uploaded to our custom repo, createrepo was run with incorrect permissions which seems to have messed up the packages metadata. To resolve, the package was removed from the repo, createrepo run, the package was added back to the repo and createrepo run again with the proper permissions. The problem now is that the package with the bad metadata is the one that got synced overnight into Satellite.
Responses
Hello,
I recently ran into the same issue. For my application, I had to remove the packages that were "bad", then publish a new content view without them present. Once I did that, I could then read them and publish again with the "good" packages present. After that the servers trying to sync and pull from that repo would now get the good package and had a successful install. Hope that helps out some.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
