Purge the package cache
Purge unneeded config files
Code:
# aptitude purge ~c
Install deborphan
Code:
# aptitude install deborphan
Have it check for orphaned packages
If you're happy to remove the listed packages (i.e. you're certain you need none of them)
Code:
# aptitude purge `deborphan`
Or better still do this first
Code:
$ deborphan > ~/orphans.txt
That way if something breaks you can reinstall them.
Add local packages to a keep list to avoid deborphan removing them
Code:
$ deborphan -A package_foo
(where package_foo is the name of the package you want deborphan to stop reporting)
More info