nerdexam
CompTIA

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.

Linux Installation and Package Management

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)
  • A
    4% (2)
  • B
    2% (1)
  • C
    92% (47)
  • D
    2% (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.

Arpm-showinformation openssh-3.6.i386.rpm

'-showinformation' is not a valid RPM flag - RPM has no such long-form option for displaying package metadata.

Brpm-showdetails-package openssh-3.6.i386.rpm

'-showdetails' is not a valid RPM flag - RPM does not recognize this option for querying package information.

Crpm-query-info-package openssh-3.6.i386.rpmCorrect

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.

Drpm-verify openssh-3.6.i386.rpm

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

#RPM#rpm -qi#package information#package query

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice