LPIC-1 Exam 101 (Linux Administrator) — Question 5
Which of the following apt-get commands will install the newest versions of all currently installed packages?
Answer options
- A. auto-update
- B. full-upgrade
- C. dist-upgrade
- D. install
- E. update
Correct answer: C
Explanation
The correct answer is C, dist-upgrade, as it not only upgrades packages but also resolves dependencies, ensuring all installed packages are updated to their latest versions. Options A, B, D, and E do not achieve the same result: auto-update does not upgrade packages, full-upgrade behaves similarly but is less commonly used, install is used for adding new packages, and update refreshes the package list without upgrading installed ones.