How To Clean Up Junk Files In Ubuntu Using Ubuntu Cleaner
One common thing we forget to do is to clean up the junk files regularly. Sooner or later, we realize that our hard disk is running out of space. There are many ways to cleanup the junk files. We can manually delete the unnecessary files, old kernels. However, there are few useful applications available to ease this task. A while ago, we have covered how to delete old kernels effectively using purge-old-kernels utility. In this brief tutorial, we are going to learn how to clean up junk files in Ubuntu and its derivatives like Linux Mint, Elementary OS etc., using Ubuntu Cleaner.
Clean Up Junk Files In Ubuntu Using Ubuntu Cleaner
Ubuntu Cleaner is the fork of the ‘Computer Janitor’ module of long-defunct Ubuntu Tweak. As you might know already, Ubuntu Tweak is discontinued years ago and is no longer in development now. The developer of Ubuntu Cleaner has pulled out the Computer Janitor module from Ubuntu Tweak, refurbished it and released it with new name i.e Ubuntu Cleaner. It is completely free to use and released under GPLv3.
Ubuntu Cleaner will remove the following in Ubuntu and its derivatives:
- App caches
- Browser caches
- Apt cache
- Package config files
- Unneeded packages
- Thumbnail cache
- Old kernels
Ubuntu Cleaner is currently works well with Ubuntu 14.04 LTS and Ubuntu 16.04 LTS.
To install Ubuntu Cleaner in Ubuntu 14.04 LTS and Ubuntu 16.04 LTS, add the following PPA:
sudo add-apt-repository ppa:gerardpuig/ppa
Update the repository list using command:
sudo apt-get update
Then, install Ubuntu Cleaner as shown below.
sudo apt-get install ubuntu-cleaner
For other Ubuntu versions, you might need to download the .deb file and install it manually.
sudo dpkg -i ubuntu-cleaner_1.0.0-1_all.deb
sudo apt install -f
Once installed, launch it either from Unity Dash or Menu.
The default interface of Ubuntu Cleaner will look like below.
Select the files you want to clean up and hit the Clean button on the lower right corner.
Ubuntu Cleaner will start to clean up the files you have selected.
Congratulations! Your Ubuntu system is free from junk files.
Now, your system became like a freshly installed one.
Not happy with Ubuntu Cleaner?, run the following commands to remove it (I think you won’t).
sudo apt-get remove ubuntu-cleaner
sudo apt-get autoremove
Is your hard drive running out of space? Just install Ubuntu Cleaner and purge-old-kernels utility and get rid of the junk files and older kernels which are no longer necessary. Both are must-have utilities in your Ubuntu system. While I testing it, I find Ubuntu Cleaner is a best user-friendly alternative to BleachBit. We will cover about Bleachbit app in a separate article soon.
If you liked this tutorial, share it on your social networks and support our site. We will be posting more useful guides, tips and tricks related to Linux, Unix, open source, technology in the days to come.