sudo apt-get remove <package>:
It will remove only the packages but not the configuration files.
sudo apt-get purge <package>:
It will remove both the package and configuration files.
sudo apt-get autoremove:
It can be used without specifying a package.It removes the configurations,packages that are no longer needed.
Example:
When You install package A,then package B and C gets installed as dependencies for package A.But when we uninstall package A,then B and C lefts installed.so here in this case,sudo apt-get autoremove searches the system for packages that are installed as dependecies and no longer be used like B and C,removes them.
Comments
Post a Comment