debian-apt.rst
changeset 1616 1559575ac211
parent 1604 797a3ba1f9b5
child 1693 e40f276a944b
child 1715 ec4088985c44
--- a/debian-apt.rst	Sun Oct 05 14:39:22 2014 +0300
+++ b/debian-apt.rst	Sun Oct 05 17:19:37 2014 +0300
@@ -116,6 +116,24 @@
 
   $ aptitude purge ~o
 
+To remove packages that were automatically installed to satisfy dependencies and
+are now no longer needed::
+
+  $ sudo apt-get autoremove
+
+Clean up packages cache.
+========================
+
+Remove everything from ``/var/cache/apt/archives/`` and
+``/var/cache/apt/archives/partial/``::
+
+  $ sudo apt-get clean
+
+Removes package files that can no longer be downloaded, and are largely
+useless::
+
+  $ sudo apt-get autoclean
+
 Check package files for modification.
 =====================================
 ::