How does apt-get install work?
apt works by keeping a list of the packages that can be downloaded from Debian on your computer. … apt can also solve many dependency problems automatically: for instance, when you choose to install a package, it will find any additional required packages and install those as well.