From: Michael Vogt Date: Fri, 8 Jun 2007 20:21:42 +0000 (+0200) Subject: * add "purge" commandline argument, closes: #133421) X-Git-Tag: 0.7.21~281^2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/e47c7d16435822f40149cd831ff6ba0a143ded85 * add "purge" commandline argument, closes: #133421) (thanks to Julien Danjou for the patch) --- diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 64882e3e8..c79c1559e 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1428,7 +1428,11 @@ bool DoInstall(CommandLine &CmdL) bool DefRemove = false; if (strcasecmp(CmdL.FileList[0],"remove") == 0) DefRemove = true; - + else if (strcasecmp(CmdL.FileList[0], "purge") == 0) + { + _config->Set("APT::Get::Purge", true); + DefRemove = true; + } for (const char **I = CmdL.FileList + 1; *I != 0; I++) { // Duplicate the string @@ -2443,6 +2447,7 @@ bool ShowHelp(CommandLine &CmdL) " upgrade - Perform an upgrade\n" " install - Install new packages (pkg is libc6 not libc6.deb)\n" " remove - Remove packages\n" + " purge - Remove and purge packages\n" " source - Download source archives\n" " build-dep - Configure build-dependencies for source packages\n" " dist-upgrade - Distribution upgrade, see apt-get(8)\n" diff --git a/debian/changelog b/debian/changelog index a4757dad6..2dc11190d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -52,6 +52,8 @@ apt (0.6.47) UNRELEASED; urgency=low - check systemtable for architecture mapping too * fix error in AutocleanInterval, closes: #319339 (thanks to Israel G. Lugo for the patch) + * add "purge" commandline argument, closes: #133421) + (thanks to Julien Danjou for the patch) -- Michael Vogt Mon, 18 Dec 2006 19:39:05 +0100 diff --git a/doc/apt-get.8.xml b/doc/apt-get.8.xml index 17f663a35..0d080b885 100644 --- a/doc/apt-get.8.xml +++ b/doc/apt-get.8.xml @@ -42,6 +42,7 @@ dselect-upgrade install pkg remove pkg + purge pkg source pkg build-dep pkg check @@ -151,6 +152,11 @@ installed instead of removed. + purge + purge is identical to remove except that packages are + removed and purged. + + source source causes apt-get to fetch source packages. APT will examine the available packages to decide which source package to