HOWTO reinstall original configuration file for package (apt, deb, dpkg)

Jan 11, 2011 18:16

aptitude -o DPkg::Options::="--force-confask" reinstall packagename

In theory --force-confnew should work, but it does not work, so I use --force-confask to ask for every configuration file to be replaced by original.

N.B. To see which package owns configuration file use apt-file (apt-file update; apt-file search /etc/some/conf.conf).

dpkg, debian, ubuntu, howto, apt, linux

Previous post Next post
Up