Force apt-get to reinstall config files

apt-get -o DPkg::options::=--force-confmiss --reinstall install <package>

Update: apt-get only reinstalls missing config files. You can use dpkg --purge <package> to remove the config files before reinstalling the package.

3 Comments

AnonymousSeptember 25th, 2008 at 19:50

Great ! I saved many times !

AnonymousMarch 10th, 2010 at 13:33

great. but even so, apt-get seems to only install the missing config files

skanxMarch 10th, 2010 at 15:08

Thanks, I updated the “post”. You can still use dpkg --purge <package> to remove config files from a package, before reinstalling the package with --force-confmiss.

Leave a comment

Your comment