exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 130 discussion

Actual exam question from CompTIA's XK0-005
Question #: 130
Topic #: 1
[All XK0-005 Questions]

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

  • A. apt-get upgrade
  • B. rpm -a
  • C. yum updateinfo
  • D. dnf update
  • E. yum check-update
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Alizadeh
8 months, 3 weeks ago
Selected Answer: D
D. dnf update.
upvoted 2 times
...
linux_admin
1 year, 2 months ago
Selected Answer: D
D. dnf update Explanation: dnf is the default package manager for RPM-based Linux distributions like Fedora, CentOS, and RHEL. The update command is used to update all installed packages to their latest versions. Running dnf update will download and install the latest versions of all installed packages, along with any necessary dependencies. The other options are not correct for the following reasons: apt-get is a package manager for Debian-based distributions and not RPM-based distributions. rpm -a is used to query information about all installed packages and not update them. yum updateinfo is used to display information about available updates but not update packages. yum check-update is used to check for available updates but not install them.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago