From: Todd A. Jacobs on 30 May 2010 20:20 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. -- "Oh, look: rocks!" -- Doctor Who, "Destiny of the Daleks" -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/20100530235711.GD7844(a)penguin.codegnome.org
From: Jordan Metzmeier on 30 May 2010 20:50 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>; -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/4C03060A.6030301(a)gmail.com
From: Jordan Metzmeier on 30 May 2010 21:20 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. > > Sorry about splitting this into two emails, but the reason that it wants to remove those packages is because they are "automatically installed" either via recommends or depends. You can mark them as manually installed with aptitude unmarkauto <package>. Sometimes you can easily unmark many packages at once with aptitude keep-all (by removing the package with dpkg so that the other actions are "pending" as far as aptitude is concerned). -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/4C0307C1.90009(a)gmail.com
From: Andrei Popescu on 31 May 2010 02:30 On Sun,30.May.10, 20:50:09, Jordan Metzmeier wrote: > On 05/30/2010 07:57 PM, Todd A. Jacobs wrote: > > > >The purge/install cycle isn't always an option, since in many cases it > >will want to uninstall all of gnome or kde. > > Sorry about splitting this into two emails, but the reason that it > wants to remove those packages is because they are "automatically > installed" either via recommends or depends. You can mark them as > manually installed with aptitude unmarkauto <package>. Sometimes you > can easily unmark many packages at once with aptitude keep-all (by > removing the package with dpkg so that the other actions are > "pending" as far as aptitude is concerned). It can also be that the package to be purged/reinstalled has (a lot of) reverse dependencies. If you know what you're doing you can --force-depends it ;) Regards, andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
|
Pages: 1 Prev: Booting from an SD card? Next: problem running kernel compiled on different machine |