]> git.saurik.com Git - apt.git/commitdiff
* add "purge" commandline argument, closes: #133421)
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 8 Jun 2007 20:21:42 +0000 (22:21 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 8 Jun 2007 20:21:42 +0000 (22:21 +0200)
  (thanks to Julien Danjou for the patch)

cmdline/apt-get.cc
debian/changelog
doc/apt-get.8.xml

index 64882e3e8875ad58672ae0c14f3f80964f207584..c79c1559e14cf7770060555e4ebad4a6dadae475 100644 (file)
@@ -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"
index a4757dad69d27f0d6252d9a8eb2ea1095c453f09..2dc11190dbf3dc2593bb599d6caa99dbfddef8f8 100644 (file)
@@ -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 <michael.vogt@ubuntu.com>  Mon, 18 Dec 2006 19:39:05 +0100
 
index 17f663a3519db91f23687291877b3b7c67f53917..0d080b8853b5600d969612fa7cabc57c70cdad0b 100644 (file)
@@ -42,6 +42,7 @@
          <arg>dselect-upgrade</arg>
          <arg>install <arg choice="plain" rep="repeat"><replaceable>pkg</replaceable></arg></arg>
          <arg>remove <arg choice="plain" rep="repeat"><replaceable>pkg</replaceable></arg></arg>
+         <arg>purge <arg choice="plain" rep="repeat"><replaceable>pkg</replaceable></arg></arg>
          <arg>source <arg choice="plain" rep="repeat"><replaceable>pkg</replaceable></arg></arg>
          <arg>build-dep <arg choice="plain" rep="repeat"><replaceable>pkg</replaceable></arg></arg>
          <arg>check</arg>
      installed instead of removed.</para></listitem>
      </varlistentry>
 
+     <varlistentry><term>purge</term>
+     <listitem><para><literal>purge</literal> is identical to <literal>remove</literal> except that packages are 
+     removed and purged.</para></listitem>
+     </varlistentry>
+
      <varlistentry><term>source</term>
      <listitem><para><literal>source</literal> causes <command>apt-get</command> to fetch source packages. APT 
      will examine the available packages to decide which source package to