Is It Possible to Clean the Apt Cache from the Command Line?

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.

2

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.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest