Which of the following commands will accomplish this task?

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

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 Debian-based 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.

References: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 19: Managing Packages and Software, page 559.

Latest XK0-005 Dumps Valid Version with 136 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments