nerdexam
Linux_Foundation

LFCS · Question #761

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. To preview the files an RPM package will install without actually performing the installation, use the rpm -qpl command.

Submitted by devops_kid· Apr 18, 2026Essential Commands

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

(40 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    5% (2)
  • D
    90% (36)

Why each option

To preview the files an RPM package will install without actually performing the installation, use the `rpm -qpl` command.

Arpm-qp apachE.xml.i386.rpm

`rpm -qp` queries general information about an uninstalled package file (like name, version, architecture), but it does not list the individual files it contains.

Brpm-qv apachE.xml.i386.rpm

`rpm -qv` queries verbosely an *installed* package by name; it's not used to inspect the contents of an uninstalled package file.

Crpm-ql apachE.xml.i386.rpm

`rpm -ql` lists the files belonging to an *installed* package identified by its name, not the contents of an uninstalled package file.

Drpm-qpl apachE.xml.I386.rpmCorrect

The `rpm` command with the `-q` option is for querying package information. The `-p` option specifies that the query should be performed on an uninstalled package *file*, and the `-l` option lists all the files contained within that package. Combining these (`-qpl`) shows exactly which files the specified RPM package would install.

Concept tested: rpm query for package file contents

Source: https://man7.org/linux/man-pages/man8/rpm.8.html

Topics

#rpm#package management#query package files#file listing

Community Discussion

No community discussion yet for this question.

Full LFCS Practice