CompTIA Linux+ (XK0-005) — Question 282

A Linux administrator is working on a system and notices that some of the packages are not at the latest version. Which of the following commands should the administrator use to correct this issue?

Answer options

Correct answer: C

Explanation

The correct command is 'dnf update', which is used in Fedora and other Red Hat-based distributions to update packages to their latest versions. The other options either do not update packages or are not appropriate for the distribution in question; for example, 'rpm --update' is not a valid command for updating packages.