I have a Dell Mini 9 with a 8 GB SSD. I installed Lucid some years ago, and upgraded each time, and now my hard disk is almost full. I see that new default programs get installed but old ones do not get automatically removed (e.g. Banshee and Rhythmbox). Now I can install a new distro from scratch but if there is a way to avoid the hassle, it would be great. I don't mind if the programs I have installed over the years get removed, they are only a few and I can reinstall them in a snap.
Package Management – How to Uninstall All but Default Ubuntu Packages
package-management
Best Answer
The solution to this question will probably solve your problem too.
Ubuntu pre-12.04
From a
gnome-terminal
do:This will get rid of the package versions and leave you with a sorted list default.txt containing all packages that are installed by default. As mentioned in the linked question, keep in mind that you might changed the default installation when installing updates and/or restricted packages during the installation of Ubuntu.
Ubuntu 12.04
The above step has changed a bit. To get a list of the packages that are initially installed, you need to unpack two files:
To get what you want, you need to remove the latter from the former:
Now continue like pre-12.04:
This will get you a sorted list current.txt of all currently installed packages.
This will get you the differences between the two package lists, where installed.txt contains all packages not part of the default installation, and uninstalled.txt contains all packages you are missing compared to a default installation.