I've upgraded Ubuntu on my laptop all the way from 7.04 to 10.04 without ever wiping the disk. I have a sneaking suspicion that means I have a bunch of crufty packages that I don't use and that are just taking up disk. Is there any way to get a list of all the packages included that are beyond the base install?
After doing a little googling I came up on this link : http://ubuntuforums.org/showthread.php?t=261366
Basically he uses
dpkg --get-selections > installed-software
to list all the installed packages , now if you can get a list from someone who just installed ubuntu or get it from a fresh VM install and compare the list you have the packages that are not in the vanilla install.
Also if you just want to remove unused packages use the janitor ( System > Administration > Compter Janitor) :-)
to get a list of libraries that have no package depending on them. You often get extra libraries left behind after an upgrade. You can also do
$ deborphan -a
to see all packages that have no other packages depending on them. Some of them you will have installed yourself, but any you don't recognise you could check the details and uninstall if they seem unnecessary.
Meanwhile debfoster will go through the packages and show you what packages and keeping lower level packages installed. This is a bit more dangerous if you don't know what you're doing, and has to be run as root or using
This lists all installed packages, stripping out those which were automatically installed:
aptitude search '~i!~E' | grep -v "i A" | cut -d " " -f 4
It's probably the closest thing to what you want. It'll still include libraries which were pulled in as dependencies of packages, but it won't contain any of the packages in the default system.