![](https://seccdn.libravatar.org/avatar/9435667f7160374bc34a8600b686aecd.jpg?s=120&d=mm&r=g)
On Mon, Apr 8, 2024 at 3:17 PM Thorsten Kukuk <kukuk@suse.com> wrote:
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.
How? If you remove a package, it is gone from the database. It is not (only) about removing configuration files, it is in the first place about tracking which package was using these configuration files after the package has been removed.