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

Re: Force reinstall of /etc files without purge/install cycle?



On 05/30/2010 07:57 PM, Todd A. Jacobs wrote:
I can't find an option within aptitude to force a reinstall of /etc
files. I know that aptitude will not overwrite them by default, but
isn't there a way to force a package's conf files back to a pristine
state?

The purge/install cycle isn't always an option, since in many cases it
will want to uninstall all of gnome or kde.

The option will likely be the --force-confmiss dpkg option.

From the IRC bot:

The reason you have to use dpkg --force-confmiss is because whenever your config files (<conffiles>) are gone, dpkg assumes you deleted them on purpose, and that you want them to stay deleted. You can also reinstall them using the following apt-get line: apt-get -o DPkg::Options::="--force-confmiss" --reinstall install <packagename>; or using aptitude, aptitude -o DPkg::Options::="--force-confmiss" reinstall <packagename>;


Reply to: