ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 2 - XK0-005 discussion

Report
Export

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?

A.
rpm -i wget
Answers
A.
rpm -i wget
B.
rpm -qf wget
Answers
B.
rpm -qf wget
C.
rpm -F wget
Answers
C.
rpm -F wget
D.
rpm -V wget
Answers
D.
rpm -V wget
Suggested answer: D

Explanation:

The command that will provide the correct information about whether files from the wget package have been altered since they were installed is rpm -V wget. This command will use the rpm utility to verify an installed RPM package by comparing information about the installed files with information from the RPM database. The verification process can check various attributes of each file, such as size, mode, owner, group, checksum, capabilities, and so on. If any discrepancies are found, rpm will report them using a single letter code for each attribute.

The other options are not correct commands for verifying an installed RPM package. The rpm -i wget command is invalid because -i is used to install a package from a file, not to verify an installed package. The rpm -qf wget command will query which package owns wget as a file name or path name, but it will not verify its attributes. The rpm -F wget command will freshen (upgrade) an already installed package with wget as a file name or path name, but it will not verify its attributes. Reference: rpm(8) - Linux manual page; Using RPM to Verify Installed Packages

asked 02/10/2024
Lars Bleckmann
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first