From: Michael Vogt Date: Thu, 14 Dec 2006 10:34:01 +0000 (+0100) Subject: * merged from the apt--auto-mark branch X-Git-Tag: 0.7.21~284^2~11 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/a8d4b8ff68e674110799fb193a897af56ca6a041?hp=c5100d8bb855b0dcc80c896b367ae66ca213ce4b * merged from the apt--auto-mark branch --- diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index be4b46857..6949dc6eb 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1409,7 +1409,7 @@ bool DoUpdate(CommandLine &CmdL) bool DoAutomaticRemove(CacheFile &Cache) { bool Debug = _config->FindI("Debug::pkgAutoRemove",false); - bool doAutoRemove = _config->FindB("APT::Get::AutomaticRemove"); + bool doAutoRemove = _config->FindB("APT::Get::AutomaticRemove", false); pkgDepCache::ActionGroup group(*Cache); @@ -2621,7 +2621,6 @@ void GetInitialize() _config->Set("APT::Get::Fix-Broken",false); _config->Set("APT::Get::Force-Yes",false); _config->Set("APT::Get::List-Cleanup",true); - _config->Set("APT::Get::AutomaticRemove",false); } /*}}}*/ // SigWinch - Window size change signal handler /*{{{*/ diff --git a/doc/apt-get.8.xml b/doc/apt-get.8.xml index 17f663a35..3c245b83b 100644 --- a/doc/apt-get.8.xml +++ b/doc/apt-get.8.xml @@ -47,6 +47,7 @@ check clean autoclean + autoremove @@ -203,6 +204,11 @@ APT::Clean-Installed will prevent installed packages from being erased if it is set to off. + + autoremove + autoremove is used to remove packages that were automatically + installed to satisfy dependencies for some package and that are no more needed. + @@ -382,6 +388,13 @@ Configuration Item: APT::Get::Remove. + + If the command is either install or remove, + then this option acts like running autoremove command, removing the unused + dependency packages. Configuration Item: APT::Get::AutomaticRemove. + + + Only has meaning for the source and build-dep