CompTIA Linux+ (XK0-005) — Question 142
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?
Answer options
- A. apt-get upgrade
- B. rpm -a
- C. yum updateinfo
- D. dnf update
- E. yum check-update
Correct answer: D
Explanation
The correct command is 'dnf update', which is specifically designed for updating packages in RPM-based distributions. The other options either pertain to different package management systems (like apt for Debian-based systems) or do not perform the necessary update function for RPM systems.