Ubuntu Linux: Clean aptitude Cache Command

by on May 27, 2009 · 1 comment· LAST UPDATED May 27, 2010

in

How do I clean the aptitude command cache under Ubuntu or Debian Linux?

To aptitude command provides the following two options to clean its cache which is usually stored in /var/cache/apt/archives directory. Open the terminal and type the command:
$ apt-get aptitude clean
The above will remove all previously downloaded .deb files from the package cache. The following command Removes any cached packages which can no longer be downloaded. This allows you to prevent a cache from growing out of control over time without completely emptying it:
$ apt-get aptitude autoclean
You can also use GUI tool called Synaptic. It offers an option to delete and clean the cache. Start Synaptic and click on Settings > Preferences > Files > Clear cache.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 1 comment… read it below or add one }

1 Tricky October 28, 2012 at 1:46 pm

$ apt-get aptitude autoclean

Should that be “$ apt-get|aptitude autoclean” perhaps?

Reply

Leave a Comment

Tagged as: , , , , , , , , ,

Previous Faq:

Next Faq: