Re: rm_conffile and left behind files

2021-03-06 Thread Paul Wise
On Sun, Mar 7, 2021 at 5:07 AM Tong Sun wrote: > Is it OK that I simply `rm` them, like `rm /etc/dnsmasq.d/dbab-*`? I think so, yes. -- bye, pabs https://wiki.debian.org/PaulWise

Re: rm_conffile and left behind files

2021-03-06 Thread Tong Sun
On Sat, Mar 6, 2021 at 11:54 PM Paul Wise wrote: > > On Sun, Mar 7, 2021 at 4:45 AM Tong Sun wrote: > > > Ah, indeed. the two files are modified after the package was > > installed. Actually they are generated, not from within the package. > > Configuration files should either be conffiles installe

Re: rm_conffile and left behind files

2021-03-06 Thread Paul Wise
On Sun, Mar 7, 2021 at 4:45 AM Tong Sun wrote: > Ah, indeed. the two files are modified after the package was > installed. Actually they are generated, not from within the package. Configuration files should either be conffiles installed in the .deb or files created by the package at postinst/run

Re: rm_conffile and left behind files

2021-03-06 Thread Tong Sun
On Sat, Mar 6, 2021 at 10:47 PM Paul Wise - p...@debian.org wrote: > > On Sun, Mar 7, 2021 at 3:31 AM Tong Sun wrote: > > > after I remove the package > > Did you remove the package or purge it? Removing it will not run the > postrm, but purging it will. I use purge. > > the last two files ... s

Re: rm_conffile and left behind files

2021-03-06 Thread Paul Wise
On Sun, Mar 7, 2021 at 3:31 AM Tong Sun wrote: > after I remove the package Did you remove the package or purge it? Removing it will not run the postrm, but purging it will. > the last two files ... still remains and are left behind, while the first one > was indeed gone. Were the two files mo

rm_conffile and left behind files

2021-03-06 Thread Tong Sun
Hi, $ head /var/lib/dpkg/info/dbab.postrm #!/bin/sh set -e # Automatically added by dh_installdeb/13.3.1 dpkg-maintscript-helper rm_conffile /etc/dbab -- "$@" dpkg-maintscript-helper rm_conffile /etc/dnsmasq.d/dbab-map.adblock.conf -- "$@" dpkg-maintscript-helper rm_conffile /etc/dnsmasq.d/dbab-ma