After installing a package with apt-get
and then overwriting some package specific config files, whenever the system upgrades itself it tries to overwrite my custom configs with the package default ones.
Is there a better way to specific custom configs without being asked if I want to reset to the default ones whenever the package updates itself?
You can pass options to dpkg from apt. Interesting for you would be the option --force-confold. The command looks like this:
Setting
--force-confdef
as well makes apt-get still update the config file if it hasn't been edited, while--force-confold
will keep edited configuration files without asking.To make this permanent, you can also set these options in your apt.conf file:
Check e.g. http://debian-handbook.info/browse/wheezy/sect.package-meta-information.html#sidebar.questions-conffiles