I am new to xubunutu and linux, my question is about how dependencies are removed from the system when we uninstall a package that caused them to install.
so consider this case that I install a package called test.
apt-get install test
However this often gives a message saying following new packages will be installed as well. Assuming it installs 50 other packages as dependencies and continue to accept and install them.
Now later on I install other packages as well, assume if the newly installed packages use 10 out of those dependencies installed earlier.
I want to know when I remove the main package (test) in future using the command
apt-get remove test
Will it automatically workout 50 - 10 packages and remove them ?
or will it not remove any of the 50 packages ?
or will it remove all the 50 packages that were installed with test package?