I ask because Ubuntu Tweak's Janitor is frozen due to the sheer number of packages in the cache that accumulated during the upgrade from 12.10 to 13.04.
2 Answers
sudo apt-get clean
will do what you want, though it does seem odd that it would freeze based on the amount of packages in the cache.
-
OP has been having quite a few other issues as well..– user25656Apr 26, 2013 at 4:37
-
Just happened to me on 14.04. Ubuntu Tweaks frozen on package 2236... oh well. Nice thing having askubuntu around.– RmanoMay 21, 2015 at 15:54
While I could use the terminal to perform this, I'd prefer the GUI.
In Synaptic , go to Settings → Preferences → File tab. Choose only delete packages that are no longer available and you're done.
You can also use Ubuntu Tweak, but it takes much longer to do the job.
An update - I've been using BleachBit for some time and the Superuser version lets delete the apt-cache and a lot more.
-
13This is a comment stating your preferences, not an answer to the question explicitly asking to clean from the commandline. Please do not abuse answer fields for comments not answering the question.– AnthonAug 21, 2015 at 7:26
-
14My read of the question was that the poser tried to use a buggy GUI to begin with and is looking for alternatives, the object being clearing the apt-cache. This is not 'abuse'. Aug 22, 2015 at 12:24