Apt-get provides a simple command-line interface for downloading and installing packages.
There are 3 main commands to uninstall a package
remove– Uninstalling Packages
autoremove– uninstalling all packages that are automatically installed and are no longer in use
purge– uninstalling and clearing the configuration of the package
Apt-get Remove Behavior We understand very well, is to delete a package at the same time, delete the package that depends on it
For example: A depends on B, B depends on C
Apt-get Remove B at the same time, will delete a (good understanding, a depends on the b,b is deleted, a will not work properly)
Apt-get Autoremove's behavioral focus is to uninstall all automated installations
For example: C depends on B, D depends on B, and D is not dependent on other manually installed packages
Apt-get Remove C will remove C, prompting you to use Apt-get autoremove to clear b,d apt-get autoremove C will remove B, C, D aptitude Remove C will delete B, C, D
My understanding: Remove C, then b,d both packages are automatically installed, and no other manually installed packages depend on them,
You can decide that b,d is not necessary.
Apt-get purge behavior Uninstall and clear the configuration of the package, it is easy to understand
Ubuntu Uninstall software