CompTIA Linux+ (XK0-005) — Question 122

A Linux administrator wants to find out whether files from the wget package have been altered since they were installed. Which of the following commands will provide the correct information?

Answer options

Correct answer: D

Explanation

The correct command is 'rpm -V wget', which verifies the files of the wget package against the installed versions to check for changes. The other options do not provide verification: 'rpm -i wget' is for installation, 'rpm -qf wget' queries the package that owns a file, and 'rpm -F wget' is for upgrading packages.