ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 130 - XK0-005 discussion

Report
Export

A Linux administrator has been tasked with installing the most recent versions of packages on a RPMbased OS. Which of the following commands will accomplish this task?

A.
apt-get upgrade
Answers
A.
apt-get upgrade
B.
rpm -a
Answers
B.
rpm -a
C.
yum updateinfo
Answers
C.
yum updateinfo
D.
dnf update
Answers
D.
dnf update
E.
yum check-update
Answers
E.
yum check-update
Suggested answer: D

Explanation:

The dnf update command will accomplish the task of installing the most recent versions of packages on a RPM-based OS. This command will check for available updates from the enabled repositories and apply them to the system. The apt-get upgrade command is used to install updates on a Debianbased OS, not a RPM-based OS. The rpm -a command is invalid, as -a is not a valid option for rpm.

The yum updateinfo command will display information about available updates, but it will not install them. The yum check-update command will check for available updates, but it will not install them. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 19: Managing Packages and Software, page 559.

asked 02/10/2024
Edwin Lebron
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first