I would like official documentation explaining why Ubuntu uses apt
instead of dpkg
.
Here's what I've found about each:
dpkg
This package provides the low-level infrastructure for handling the installation and removal of Debian software packages.
apt
This package provides commandline tools for searching and managing as well as querying information about packages as a low-level access to all features of the libapt-pkg library.
apt
ordpkg
? And the answer becomes "dpkg
is not able to download from source repositories, etc. it's a 'dumb tool' to install Debian packages in .deb format.apt
is what actually downloads from the repositories and checks for repository updates, etc. and then knows what to download when you runapt install
for a given package.dpkg
is the 'dumb tool', whereasapt
is the smart tool and can help decipher what dependencies also need installed, etc. and then handle yelling if there's an uninstallable package. – Thomas Ward May 06 '22 at 19:45man apt
andman dpkg
-- Ubuntu has bothapt
anddpkg
. All Debian based distributions have bothapt
anddpkg
.apt
is just a user friendly, more intelligent, dependency resolving front end for the lower leveldpkg
. If you want more information, read the duplicate I have posted. Everything you've asked here is covered in the duplicate. – Nmath May 06 '22 at 20:00