Maybe someone can help me understand a little about package management. Namely, when uninstalling a package how do I know exactly what other pkgs, originally installed as dependencies, I can uninstall? For example:
A -> installs -> B and C; C in turn installs -> D.
At some time later, I install A' which depends on C (and thereby, D).
Now, I want to uninstall A and all packages that were installed as dependencies but are unused by any subsequently installed package (in this case, B). How do I figure this out?
A parallel question is whether I can find a tree not just of all packages and their (reverse)/dependencies, but of the packages that I specifically installed (and their dependencies).