]> git.saurik.com Git - apt.git/commitdiff
apt: Add autoremove and auto-remove commands
authorJulian Andres Klode <jak@debian.org>
Fri, 14 Aug 2015 18:35:18 +0000 (20:35 +0200)
committerJulian Andres Klode <jak@debian.org>
Fri, 14 Aug 2015 18:37:50 +0000 (20:37 +0200)
cmdline/apt.cc
doc/apt.8.xml

index 2f7eddb611154adb5d97d0a26548aa4c433dd14d..92db34cfa4fe389e021f68d331f0ff9518e0eafc 100644 (file)
@@ -55,6 +55,7 @@ static bool ShowHelp(CommandLine &)
       "\n"
       " install - install packages\n"
       " remove  - remove packages\n"
+      " autoremove - Remove automatically all unused packages\n"
       "\n"
       " upgrade - upgrade the system by installing/upgrading packages\n"
       " full-upgrade - upgrade the system by removing/installing/upgrading packages\n"
@@ -76,6 +77,8 @@ int main(int argc, const char *argv[])                                        /*{{{*/
                                    // package stuff
                                    {"install",&DoInstall},
                                    {"remove", &DoInstall},
+                                   {"autoremove", &DoInstall},
+                                   {"auto-remove", &DoInstall},
                                    {"purge", &DoInstall},
 
                                    // system wide stuff
index e00b6417af2dda826d349170462c210327ed1a70..18b97f547ee90954096e7934270eb76859d83e20 100644 (file)
      installed instead of removed.</para></listitem>
      </varlistentry>
 
+     <varlistentry><term><option>autoremove</option> (and the <option>auto-remove</option> alias since 1.1)</term>
+     <listitem><para><literal>autoremove</literal> is used to remove packages that were automatically
+     installed to satisfy dependencies for other packages and are now no longer needed.</para></listitem>
+     </varlistentry>
+
      <varlistentry><term><option>edit-sources</option></term>
      <listitem><para><literal>edit-sources</literal> lets you edit
      your sources.list file and provides basic sanity checks.