Difference Between Apt-Get and Dpkg

Difference Between Apt-Get and Dpkg

What is the difference between these two? Also why if I do apt-get purge XY I still see XY when I invoke dpkg -l ?

1

1 Answer

apt-get handles lists of packages available to the system. It also handles package dependecy resolution, so that when installing a package, all the other packages required by it get installed too. It also handles package download from package repositories.

dpkg is the low level tool that actually installs package contents to the system.

If you try to install a package with dpkg whose dependencies are missing, dpkg will exit and complain about missing dependencies.

With apt-get it also installs the dependencies.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.