On Mon, Apr 8, 2024 at 2:15 PM Andrei Borzenkov <arvidjaar@gmail.com> wrote:
On Mon, Apr 8, 2024 at 2:44 PM Johannes Kastl <mail@johannes-kastl.de> wrote:
>
> Hmmm. Not sure if it is a good idea to remove the handcrafted config
> file just because the package is being uninstalled.
> But of course, now that I think of it, once the RPM got uninstalled
> rpm will no longer show a file as belonging to this RPM, either.
>

This is one thing dpkg does better. It distinguishes between
"uninstall" and "purge". "uninstall" keeps (modified) configuration
files and "purge" wipes them out. I wonder if this was ever considered
for RPM.


It does if you use %config and not %ghost. With %ghost RPM cannot detect if the file got modified by the admin or not.
Another reason why %ghost is evil.

  Thorsten

--
Thorsten Kukuk, Distinguished Engineer, Senior Architect, Future Technologies
SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nuernberg, Germany
Managing Director: Ivo Totev, Andrew McDonald, Werner Knoblich (HRB 36809, AG Nürnberg)