CompTIA
LX0-103 · Question #161
LX0-103 Question #161: Real Exam Question with Answer & Explanation
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
Explanation
The rpm -qpl option combination queries an uninstalled package FILE and lists the files it would install, allowing a preview before actual installation.
Common mistakes.
- A. -qp queries basic metadata about a package file but does not include the -l flag needed to list the contained files.
- B. -qv adds verbose output when querying an already-installed package and does not list file paths from an uninstalled .rpm.
- C. -ql lists files belonging to an already-installed package; without -p, rpm searches installed packages by name rather than reading a local .rpm file.
Concept tested. RPM query flags for uninstalled package file listing
Reference. 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.