nerdexam
CompTIA

LX0-103 · Question #161

You want to preview where the package file, apachE.xml.i386.rpm, will install its files before installing it. What command do you issue?

The correct answer is D. rpm-qpl apachE.xml.I386.rpm. The rpm -qpl option combination queries an uninstalled package FILE and lists the files it would install, allowing a preview before actual installation.

Linux Installation and Package Management

Question

You want to preview where the package file, apachE.xml.i386.rpm, will install its files before installing it. What command do you issue?

Options

  • Arpm-qp apachE.xml.i386.rpm
  • Brpm-qv apachE.xml.i386.rpm
  • Crpm-ql apachE.xml.i386.rpm
  • Drpm-qpl apachE.xml.I386.rpm

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    8% (2)
  • D
    88% (23)

Why each option

The rpm -qpl option combination queries an uninstalled package FILE and lists the files it would install, allowing a preview before actual installation.

Arpm-qp apachE.xml.i386.rpm

-qp queries basic metadata about a package file but does not include the -l flag needed to list the contained files.

Brpm-qv apachE.xml.i386.rpm

-qv adds verbose output when querying an already-installed package and does not list file paths from an uninstalled .rpm.

Crpm-ql apachE.xml.i386.rpm

-ql lists files belonging to an already-installed package; without -p, rpm searches installed packages by name rather than reading a local .rpm file.

Drpm-qpl apachE.xml.I386.rpmCorrect

The -q flag enters query mode, -p specifies the argument is a package file rather than an installed package, and -l lists all files the package contains. Together, -qpl lets you preview exactly which paths an .rpm file would install to without running the installation.

Concept tested: RPM query flags for uninstalled package file listing

Source: https://rpm.org/documentation.html

Topics

#RPM query#package inspection#rpm flags#pre-install file list

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice