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.
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)- A4% (1)
- B8% (2)
- D88% (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.
-qp queries basic metadata about a package file but does not include the -l flag needed to list the contained files.
-qv adds verbose output when querying an already-installed package and does not list file paths from an uninstalled .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.
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
Community Discussion
No community discussion yet for this question.