howtutorials linux

Posts Tagged ‘ubuntu cleaner’

Ubucleaner – Simple bash script to keep Ubuntu System Clean

Posted by geekubuntu on December 24, 2008

Note:- This is Only for advanced Ubuntu users

Ubucleaner Features:

– Clean apt cache

– Remove config files left from uninstalled .deb packages(it happens if you don’t use the –purge switch with apt-get)

– Remove every kernel except the one you are using

– Empty the trashes of every user(including root)

It uses apt and the kernel removing thing searches for ubuntu-only packages, so it can’t work on non-debian system and the result is undetermined for other debian-based system, but you can still use the other features of the script(you’ll just have to comment the parts you don’t want).

The script assumes that you are using the text-based Aptitude application, rather than apt-get and dpkg. If you are not using Aptitude, you should also replace the reference to aptitude clean with apt-get clean and the reference to aptitude purge to dpkg -purge.This can be done done by editing the following script.

First you need to download the script from here or using the following command

wget http://www.opendesktop.org/CONTENT/content-files/71529-ubucleaner.sh

Now you should have 71529-ubucleaner.sh file you need to give execute permissions using the following command

sudo chmod +x 71529-ubucleaner.sh

Run the script using the following command


Posted in Utilities | Tagged: , , | Leave a Comment »