Regarding ubuntu software installation: What is the difference between apt-get and dpkg?

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.