LPIC-1 Exam 101 v5 (Linux Administrator) — Question 2

Which of the following apt-get subcommands installs the newest versions of all currently installed packages?

Answer options

Correct answer: B

Explanation

The correct answer is B, dist-upgrade, as this command not only upgrades the packages but also handles changing dependencies with new versions of packages. The other options do not perform the same function: A (auto-update) is not a valid command, C (full-upgrade) is synonymous with dist-upgrade in some contexts but not universally recognized, D (install) is for installing new packages, and E (update) only refreshes the package list.