XK0-005 · Question #1190
XK0-005 Question #1190: Real Exam Question with Answer & Explanation
The correct answer is B: apt-get update, apt-get upgrade, apt-get dist-upgrade. Used to re-synchronize the package index files from their sources. An update should always be performed before an upgrade or dist-upgrade. Used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list(5)
Question
A systems administrator has scheduled a system update for a server. The update includes a resynchronization of the package database and updates to the current packages and the system distribution packages. Which of the following commands contains the proper order of this update?
Options
- Aapt-get upgrade, apt-get dist-upgrade, apt-get update
- Bapt-get update, apt-get upgrade, apt-get dist-upgrade
- Capt-get dist-upgrade, apt-get upgrade, apt-get update
- Dapt-get update, apt-get dist-upgrade, apt-get upgrade
Explanation
Used to re-synchronize the package index files from their sources. An update should always be performed before an upgrade or dist-upgrade. Used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list(5). In addition to performing the function of upgrade, this option also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones,
Topics
Community Discussion
No community discussion yet for this question.