No, it will not. It works the other way around: if you remove package A, every package that depends (directly or indirectly) on A is removed as well. That makes sense since they cannot work without A.

For example if A is "xserver-xorg" and you remove it, then "libreoffice" (that depends on A) is removed as well.

Packages that came as dependencies of package A (i.e., the user did not explicitly asked for them) will be removed by 'apt-get autoremove' (hence not automatically) if package A was uninstalled and no other explicitly installed package depends on A. Again, that makes sense: A almost certainly is an "orphan dependency" that is only consuming space on your root partition. If not, then the user should explicitly asked for its installation (e.g. through 'apt-get install A').

For example if A is "libreoffice" and you remove it, then "xserver-xorg" (a dependency of A) will *not* be removed as well. Not even after 'apt-get autoremove' as long as at least one other graphical application (that depends on A) is installed.

Reply via email to