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.
Question
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)- A3% (1)
- B3% (1)
- C5% (2)
- D90% (36)
Why each option
To preview the files an RPM package will install without actually performing the installation, use the `rpm -qpl` command.
`rpm -qp` queries general information about an uninstalled package file (like name, version, architecture), but it does not list the individual files it contains.
`rpm -qv` queries verbosely an *installed* package by name; it's not used to inspect the contents of an uninstalled package file.
`rpm -ql` lists the files belonging to an *installed* package identified by its name, not the contents of an uninstalled package file.
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
Community Discussion
No community discussion yet for this question.