[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Best way to handle config overrides in packages

On Wed, 2023-03-29 at 15:43 +0300, Олег Михайлов wrote:

> 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.  

There are several ways to do this:

1) make the file in /etc not be a conffile (not policy compliant):


	sed -i '\=^/etc/foo/=d' debian/*/DEBIAN/conffiles

2) change the file in /etc so that it works when the package is removed

3) as undef says, move the default config files to /usr



Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: