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

Re: dpkg no longer installs conffiles??



On Wed, 30 Nov 2016 12:00:40 +0100, Svante Signell
<svante.signell@gmail.com> wrote:
>On Tue, 2016-11-29 at 19:18 +0100, Simon Richter wrote:
>> To force reinstallation of configuration files, invoke dpkg with the
>> "--force-confmiss" option when installing. This will only restore
>> missing configuration files, but not overwrite changed ones. If some
>> configuration files were damaged, you can use "--force-confnew" to
>> unpack all configuration files; your old files can be found with a
>> ".dpkg-old" suffix then.
>
>A problem with essential and important packages is that you can only reinstall
>them. So apt-get install --reinstall or dpkg -i <path_to_deb> only reinstalls
>the package, not the conffiles. Now I know how to get the conffiles back, but
>tracing which packages has them is hard: Any ideas?

dpkg --force-confmiss --install <path_to_deb>, as suggested by Simon,
didn't work

>Anyway, I think the default behaviour of dpkg is wrong: If you have
>intentionally or by accident removed some conffiles, they should be installed by
>default with a reinstall. I'll file a serious bug on dpkg for it.

It would be a bug in dpkg to override the admin's conscious decision
to remove a conffile by reinstalling it.

Greetings
Marc
-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber         |   " Questions are the         | Mailadresse im Header
Mannheim, Germany  |     Beginning of Wisdom "     | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834


Reply to: