On 04/10/2015 08:23 AM, Eduardo M KALINOWSKI wrote:
On Sex, 10 Abr 2015, Jeroen Massar wrote:
Though indeed simpler than commenting out multiple lines, that file also gets replaced by a package upgrade.
Hence does not solve the 'can just upgrade silently' issue.
If the file is unchanged then, yes, it gets replaced on upgrades. If it has local changes, however, you'll get a prompt asking what you want to do (keep your changes or use the package version). So while it fails you "upgrade silently" requirement, you'll not automatically loose the changes you've made.
Actually, a config file in Debian is replaced if it has _not_ been changed locally, and it _has_ been changed upstream. If it has been changed on both sides, you get prompted. If the new package is just a security update, which in most cases means changes to the binaries and not to the default config, then it will just install without prompts, and not touch your config files. If it's an entirely new version, then the desire to just upgrade silently is sort of inappropriate anyway - you will need some preparation.