Best way to handle config overrides in packages

2023-03-29 Thread Олег Михайлов
I have a case when I need to add multiple configuration files for another package into the system as parts of its split config. The thing is, I need to remove them when I remove my package because they include lines which are only valid when the package is installed. Is there any nice way to go abo

Re: Best way to handle config overrides in packages

2023-03-29 Thread undef
Hi Oleg, I'd say the best way to handle this would be to work with the package maintainer/upstream to allow config files to be specified in /usr/share/. This way dpkg will automatically remove the files for you. Before going down that path I did attempt it in /etc/. It was messy but the clo