Is there a way to replace
/etc configuration files from a package, overwriting my local changes? I've tried
apt-get install --reinstall mypackage but it doesn't update the files.
How can I do this?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
A related serverfault question describes how to restore package conffiles if you've removed them, and requires that you track down the actual
All you need to do:
Find the list of conffiles provided by the package:
dpkg --status <package>
(look under the
Remove those conffiles yourself.
Reinstall the package. If you've found the
dpkg -i --force-confmiss <package_deb>.deb
Alternatively, passing the
dpkg option via
apt should work:
apt-get install --reinstall -o Dpkg::Options::="--force-confmiss" <package>