From b255ff1a1161385b7f52454ec8661f058f05d6db Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 29 Sep 2006 15:13:45 +0200 Subject: * cmdline/apt-get.cc: - fix problem that AutomaticRemove can't be set permanently via preferences --- cmdline/apt-get.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 570e1016c..9b6e36e21 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1393,7 +1393,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); @@ -2560,7 +2560,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 /*{{{*/ -- cgit v1.2.3 From 0e4fe941a62583660e966cccf630a8895b9d29bc Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 2 Oct 2006 15:45:55 +0200 Subject: =?UTF-8?q?*=20doc/apt-get.8.xml:=20=20=20-=20added=20documentatio?= =?UTF-8?q?n=20patch=20from=20Vladim=C3=ADr=20Lap=C3=A1=C4=8Dek=20about=20?= =?UTF-8?q?autoremove?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/apt-get.8.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/apt-get.8.xml b/doc/apt-get.8.xml index b98d58737..db852d007 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 -- cgit v1.2.3