Step1: Removing downloaded Packages.
It's pretty simple. Open the Terminal and type in the following commands:
(To Open shell go to: Applications -> Accessories -> Terminal)
(To Open shell go to: Applications -> Accessories -> Terminal)
sudo apt-get clean sudo apt-get autoremove
The 1st line basically cleans the local repository cache out of packages that have been downloaded from the Internet due to ubuntu upgrades or custom installs via synaptic or ubuntu software center. The size of such packages can reach hundreds of megs. Often Gigs.
The 2nd line is used to remove packages that were automatically installed to satisfy dependencies for some package and that are no longer needed.
The 2nd line is used to remove packages that were automatically installed to satisfy dependencies for some package and that are no longer needed.
Step 2: Removing Residual packages.
Open Synaptic package manager (System -> Administration -> Synaptic package Manager). Click Residual Config from the left buttons. If Any packages appear then right click , select all and mark for Complete Removal.
Step 3: Removing Orphaned Packages.
First,you need to install this awesome utility that automatically detects orphaned libraries, packages and config files for you so type in the following command:
sudo apt-get install gtkorphan
After it's installed, go to System -> Administration -> Remove Orphaned Packages. A list of packages will appear. Right click, select all and then click ok.
(If you know what you are doing there are some options down the window that you can play with. USE WITH EXTREME CAUTION in that case. EXAMINE THE PACKAGES CAREFULLY before you remove anything).
Finally, Keep repeating the previous sequence of steps until u find nothing to remove =) And taddaa !! Fresh and clean Ubuntu Baby ;)
(If you know what you are doing there are some options down the window that you can play with. USE WITH EXTREME CAUTION in that case. EXAMINE THE PACKAGES CAREFULLY before you remove anything).
Finally, Keep repeating the previous sequence of steps until u find nothing to remove =) And taddaa !! Fresh and clean Ubuntu Baby ;)