#118 [RFE] Cleanup install files upon rpm removal
Closed: wontfix 5 years ago Opened 13 years ago by admiyo.

When performing the removal (as opposed to upgrade) of the ipa-server, we should take stpes to clean up the files that we generate as part of an ipa-server-install.

Suggestion is that we check in the %post section if we are doing an uninstall or an upgrade. If we are doing an uninstall, we take all the files that ipa-server-install creates rename them to .RPMSAVE files, or, alternately, just deletes them.

We could potentially use the .RPMSAVE files for a follow on install as well.


My memory is fuzzy on this but the problem as I recall it is we want to avoid at all costs someone accidentally erasing their infrastructure.

There is some debate about whether this is the right approach.

Arguments for:

RPM is the admins tool to manage content on the system. If an admin does rpm -e for a package, the
system should be left clean. If a user gets an ipa install into a broken state, rpm -e should be the "nuke it from orbit" option, leaving the system clean such that an rpm install and ipa install will succeed.

Arguments against: The data that ipa manages is vital to an organization. Deleting it could be disasterous.

apt has a concept of purge, which removes not just files managed by the package, but also of the files produced by running the programs of that package. ipa-server-install --uninstall coupled with running rpm -e ipa-server will result in a clean system. The problem is that users may not perform that sequence, and be left with orphaned file on the system.

Thus, perhaps the correct final state is to have a script ipa-server-purge which is left behind when the ipa-server is uninstalled, that contains information about how to clean up the rest of the files on the system.

Metadata Update from @admiyo:
- Issue assigned to rcritten
- Issue set to the milestone: Tickets Deferred

7 years ago

This RFE was evaluated and will not be implemented.

It is left as an exercise to the user to properly clean up their installation prior to removing packages. This may not meet expectations but is the safest course of action.

Metadata Update from @rcritten:
- Issue close_status updated to: wontfix
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata