Petr Pisar wrote:
It does not remove random packages. It removes packages that are not needed because the package was not installed explicitly and it's not a transitive dependency of such explicitly installed package.
That's the autoremove misfeature, which is really a different issue than the --allowerasing to resolve dependency conflicts that is being discussed here.
IMHO, enabling autoremoval by default was a horrible idea.
Kevin Kofler