|
RPM {-q|--query} [select-options] [query-options]
[Select-options]
1. Check if the package is installed
Rpm-q package_name ...
2. Query all installed Packages
Rpm-qa
3. Query which package is generated by a file
Rpm-qf/path/to/somefile
4. Query for information about packages that have not been installed
RPM-QP Package_file
[Query-options]
1, query A package of brief description information
Rpm-qi package_name
2. Query the list of all files generated after the installation of a package
RPM-QL package_name
3. Query the list of all configuration files generated after a package is installed
RPM-QC package_name
4. Query the list of all help files generated after a package is installed
RPM-QD package_name
5, query a RPM package production with the version of the Changelog list information
Rpm-q--changelog Package_name
6. Query the capabilities provided by a package
Rpm-q--provides Package_name
7, query the capabilities that a package depends on
Rpm-q--requires Package_name
8. Query the script when loading and unloading a package
Rpm-q--scripts
There are four types of scripts available when loading and unloading:
Preinstall: Scripts executed prior to installation
Postinstall: Script to execute after installation
Preuninstall: Scripts executed prior to uninstallation
Postuninstall: script executed after uninstallation
|