CompTIA Linux+ (XK0-004) — Question 257
A junior administrator needs to display information for an RPM package that contains software from an external provider.
Which of the following commands will display the package information?
Answer options
- A. rpm -vp package.noarch.rpm
- B. rpm -qp package.noarch.rpm
- C. rpm -qf package.noarch.rpm
- D. rpm -qi package.noarch.rpm
Correct answer: D
Explanation
The correct command is 'rpm -qi package.noarch.rpm', which provides detailed information about the installed RPM package. The other options either verify package integrity, query package files, or find which package a file belongs to, but do not display the package information directly.