1

How does

apt install chromium

install chromium. All I understand about apt is that it downloads the .deb files and then runs dpkg. Is there anything else apt does?

2 Answers2

0

Just simple answer is :
apt can be consider as front-end for dpkg

But more than that apt is complete package manager for update,install,upgrade,dist-upgrade and a lot of other things check this https://help.ubuntu.com/community/AptGet/Howto

sudo apt update checks all the configured source for latest package available there and it downloads all the details for package available for installation.
you can know a lot by man apt

update (apt-get(8))
           update is used to download package information from all configured
           sources. Other commands operate on this data to e.g. perform
           package upgrades or search in and display details about all
           packages available for installation.

Now on performing sudo apt install <package> if there is package available for installation it start downloading the package (.deb file) and perform dpkg to install the package. Otherwise if there is no package availabe it throw error message.

yathomasi
  • 326
0

Apt maintains:

  • A database of sources (/etc/apt/sources*)
  • A database of known packages (/var/lib/apt)
  • A cache of downloaded packages (/var/cache/apt/archives)
  • A queue of packages actions to do
  • Interfaces to dbus, aptdaemon, and packagekit.

Add-ons to apt handle:

  • Scheduled (automatic) upgrades, including background security upgrades
  • Update notifications to the user
  • Kernel replacements and /boot cleanup
  • Package cache cleanup
  • Release-upgrades
user535733
  • 62,253