Ubuntu - Clean up the old updates and recover the storage space

Published on: 22nd Apr 2014

Updated on: 2nd Aug 2025

Why cleanup

The more updates that you have done to the server, the more storage space the old stuff will occupy. To prevent running out of disk space, it's best to do cleanup once a month.

Another area that will occupy lots of space is the logs.

How to find out the storage usage

There are 3 commands that can help in finding out the storage capacity and usage:

To cleanup the files created by installation or upgrade

Related posts

Back to #UBUNTU blog

Back to #blog listing

Author

Lau Hon Wan, software developer.