[Aptitude-devel] Bug#806770: Bug#806770: aptitude: Command parameter to restore /etc/ configuration files easily
Axel Beckert
abe at debian.org
Tue Dec 1 16:40:14 UTC 2015
Control: block -1 by 32877
Hi,
Manuel A. Fernandez Montecelo wrote:
> >It would be satisfying if that command would have 1 parameter only instead of
> >long command not easy to remember:
> >sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall
> ><package-name>
>
> Isn't this more or less the same?
>
> aptitude purge ${pkg}; aptitude install ${pkg}
No. This forces all reverse dependencies to be removed. That's
definitely not what you want.
IMHO the clean way to get this kind of feature set is when dpkg does
not only remember the default hashsum of all conffiles, but the whole
contents of the conffile. See https://bugs.debian.org/32877 ("dpkg:
Cleverer conffile merge") for that discussion.
Regards, Axel
--
,''`. | Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
More information about the Aptitude-devel
mailing list