Hi Craig,

to cleanup this part:

Christoph Anton Mitterer wrote:
> procps used to contain the DPKG conffile:
> /etc/sysctl.conf
> properly cleaned up on legacy installations:
> $ dpkg-query --showformat='${Package}\n${Conffiles}\n' --show  |  awk '/^[^ 
> ]/{pkg=$1}/ obsolete$/{print pkg,$0}' | cut -d ' ' -f 1-3 | column -t
> procps          /etc/sysctl.conf

I'd suggest to add the following to your package; dpkg should then
clean up the conffile automatically. Please test it, however.

   echo 'remove-on-upgrade /etc/sysctl.conf' >> debian/procps.conffiles


On Mon, Jul 15, 2024 at 12:05:22AM +0200, Christoph Anton Mitterer wrote:
> # dpkg -S /etc/sysctl.d/99-sysctl.conf 
> systemd: /etc/sysctl.d/99-sysctl.conf
> 
> was a bit of a surprise that systemd contains the link for a file from
> propcs... nevertheless now that the target is no longer created, the
> link should probably go, too?!

This is #1076190.

Chris

Reply via email to