Regarding ubuntu software installation: What is the difference between apt-get and dpkg?
The difference between the two is that dpkg bypasses the apt package management database to operate the software package, so you can use apt to install the software package that dpkg has installed again. The system does not know that the software package has been installed before, the previous installation of dpkg will be overwritten. 1. dpkg is used to install the. deb file, but it does not solve the module dependency, and does not care about the software in the ubuntu software repository. It can be used to install local deb files. 2. apt will solve and install module dependencies, consult the software warehouse, but will not install local deb files. apt is a software management tool built on dpkg. Installation Package dpkg-I package_name.deb // install the local package, does not resolve the dependency apt-get install package // The online installation package aptitude install pattern // same as apt-get install package -- reinstall // reinstall the package Apsara reinstall package // remove the package from the above dpkg-r package // Delete the package apt-get remove package // same as aptitude remove package // same as dpkg-P // Delete the package and configuration file apt-get remove package -- purge/ /Delete the software package and configuration file apitude purge pattern // remove the software package from apt-get autoremove automatically. // Delete the software package that is no longer needed