CompTIA Exam Questions

What apt-get command would you run to download the latest list of packages, but not the packages the

You have not run apt-get on a system for some time, but it has been run on the system before. What apt-get command would you run to download the latest list of packages, but not the packages themselves?

A.
apt-get update

B.
apt-get build dep

C.
apt-get upgrade

D.
apt-get dist-upgrade

E.
apt-get mirror-select

Explanation:
To automatically upgrade all installed packages to the latest available version, issue the following command:
apt-get upgrade : Used to re-synchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list(5). An update should always be performed before an upgrade or dist-upgrade.