LX0-103 · Question #118
What RPM command would show you detailed information for a package called openssh- 3.6.i386.rpm?
The correct answer is C. rpm-query-info-package openssh-3.6.i386.rpm. Querying detailed information about an uninstalled RPM package file requires combining the -q (query), -i (info), and -p (package file) flags.
Question
What RPM command would show you detailed information for a package called openssh- 3.6.i386.rpm?
Options
- Arpm-showinformation openssh-3.6.i386.rpm
- Brpm-showdetails-package openssh-3.6.i386.rpm
- Crpm-query-info-package openssh-3.6.i386.rpm
- Drpm-verify openssh-3.6.i386.rpm
How the community answered
(51 responses)- A4% (2)
- B2% (1)
- C92% (47)
- D2% (1)
Why each option
Querying detailed information about an uninstalled RPM package file requires combining the -q (query), -i (info), and -p (package file) flags.
'-showinformation' is not a valid RPM flag - RPM has no such long-form option for displaying package metadata.
'-showdetails' is not a valid RPM flag - RPM does not recognize this option for querying package information.
The rpm -q (query) flag combined with -i (display package information) and -p (operate on a package file rather than an installed package) produces full metadata output from the .rpm file header. Running 'rpm -qip openssh-3.6.i386.rpm' displays fields such as name, version, release, architecture, description, and build date without requiring the package to be installed.
rpm -V (verify) compares installed package files against the RPM database and does not display package metadata or accept uninstalled .rpm files as input.
Concept tested: RPM query flags for uninstalled package info
Source: https://linux.die.net/man/8/rpm
Topics
Community Discussion
No community discussion yet for this question.