Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the upgrade from 12.10 to 13.04 I lost the ability to use Ubuntu Tweak's Janitor to clean caches so I would like to know how to do it from the command line.

share|improve this question
up vote 0 down vote accepted

I've never used any such software but if you're talking about caches, I think you might mean downloaded APT packages in /var/cache/apt/archives which are cleaned with sudo apt-get clean.

If you mean package/source package caches, then these can be re-generated with apt-cache gencaches. If you want to remove them for some (odd) reason, they're held in:

share|improve this answer
Nope sudo apt-get clean only cleans the apt cache not software cache. – Brenton Horne May 2 '13 at 21:23
Software cache is a rather non-specific term to be honest - I'm aware what that command does :) Just curious - why do you feel you need to manage this manually or with the help of some tweak package? – Marcin Kaminski May 2 '13 at 21:34

Install BleachBit. It will clean your /var//var/cache/apt/archives when you run BleachBit as root. I use BB every nite to clean up install/upgrade downloads.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.