正解:D
Explanation
The command rpm -qpl apache-ql.rpm is used to preview the list of files that would be installed by the RPM package file apache-xml.rpm. This command queries the package file without installing it and lists the contents of the package. Here's what each part of the command means:
* rpm is the command-line tool used for managing RPM packages on Linux systems.
* -qpl are options for the rpm command.
* q stands for query mode
* l stands for list the contents of the package.
* p specifies that the package being queried is not installed, but is a file located on the system.
* apache-xml.rpm is the name of the RPM package file you want to query.
So, when you run this command, it will display a list of all the files that are included in the apache-xml.rpm package file, without installing it. This can be useful for checking what files are included in the package before installing it or comparing it with another version of the package.
The other commands are either invalid or do not perform the same function as the correct answer. For example:
* rpm -qp apache-xml.rpm will only display the name and version of the package, not the list of files.
* rpm -qv apache-xml.rpm will display the verbose information about the package, such as the description, license, and changelog, but not the list of files.
* rpm -ql apache-xml.rpm will list the files that are installed on the system by the apache-xml.rpm package, but only if the package is already installed. If the package is not installed, it will return an error.
References:
* 4 ways to list files within a rpm package in Linux
* How to list all files installed by RPM package
* How to List Files Installed From an RPM Package in CentOS?
* How to list all files contained in an RPM package