LFCS · Question #718
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. To retrieve detailed information about a specific .rpm package file, the rpm command is used with the --query, --package, and --info flags.
Question
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
(19 responses)- C95% (18)
- D5% (1)
Why each option
To retrieve detailed information about a specific `.rpm` package file, the `rpm` command is used with the `--query`, `--package`, and `--info` flags.
`rpm-showinformation` is not a valid `rpm` command or flag combination.
`rpm-showdetails-package` is not a valid `rpm` command or flag combination.
The `rpm` command with the flags `--query` (or `-q`), `--package` (or `-p`), and `--info` (or `-i`) is used to display detailed metadata and information about an RPM package file (`.rpm`) that is not yet installed on the system.
`rpm-verify` (or `rpm -V`) is used to verify the integrity of *installed* packages against their metadata, not to show detailed information about an uninstalled package file.
Concept tested: RPM package information query
Source: https://man7.org/linux/man-pages/man8/rpm.8.html
Topics
Community Discussion
No community discussion yet for this question.