This question already has an answer here:
I'm using aptitude as package manager. If one marks packages for removal it calculates the changing in disk usage, i.e. how much space is freed by removing that package and its automatically installed, otherwise unused dependencies.
Is there a way (not necessarily within aptitude) to get this number for, say, all packages marked manually installed?