patchmanager
patchmanager copied to clipboard
How should uninstall of rpm's patch should be handled?
It's a question, not a bug.
I really do not know how the rpm should handle the patch uninstall, i've seen @CODeRUS adding in the .spec
file the %preun
section in order to uninstall the patch. But, what does happen if the developer do not add that?, Will the user have to reinstall the patch in order to unapply it?. In addition, supusely that for the unappliance of the patch a service has to be restarted, is the rpm responsible for doing that too?
Will there be similar problems for patched updates?.
I'm adding scriptlets to workaround a bug woth old patchmanager, when patch can't be unapplied and applied again after installing new version of patch without unapplying old one. In new patchmanager everything should work fine. And for restarting services responsible category field in json.
Okey, so patchmanager handles everything?. Does the user have to reapply the patch after an update (of the patch)?.
Patchmanager hold copy of applyed patch in different location, so after overwriting it with newer version it still possible to unapply old applied patch.