The database files in the/var/lib/RPM directory are queried by rpm. In addition, rpm can also query information in the file. How can I query with RPM? [Root @ Linux ~] # Rpm-Qa [root @ Linux ~] # Rpm-Q [licdr] use the installed package name [root @ Linux ~] # Rpm-QF a file on the system [root @ Linux ~] # Rpm-QP [licdr] An uninstalled file name parameter: Before querying all parameters, you must add-Q. Queries are divided into two parts: Check installed files and check the content of an RPM file. Query Information about installed kits:-Q: only query whether the following kit names are installed-QA: list all kit names installed on the local Linux system-Qi: list the details of the suite, including the developer, version, and description. -Ql: list all files and directories of the suite ). -QC: list all configuration files of the suite (find the file names under/etc ). -QD: list the files contained in the dependency suites related to this suite (required)-QF: The names of the files that are followed by them to find out which file belongs to the ungd package. Query the information contained in an RPM file:-QP [icdlr]: Note: All parameters followed by-QP are subject to the instructions described above, but the purpose is only to find information in an RPM file, this is not the information of installed suites.
The rpm query command in Linux stores database files in the/var/lib/RPM directory during rpm query. In addition, rpm can also query information in the file. How can I query with RPM? [Root @ Linux ~] # Rpm-Qa [root @ Linux ~] # Rpm-Q [licdr] use the installed package name [root @ Linux ~] # Rpm-QF a file on the system [root @ Linux ~] # Rpm-QP [licdr] An uninstalled file name parameter: Before querying all parameters, you must add-Q. Queries are divided into two parts: Check installed files and check the content of an RPM file. Query Information about installed kits:-Q: only query whether the following kit names are installed-QA: list all kit names installed on the local Linux system-Qi: list the details of the suite, including the developer, version, and description. -Ql: list all files and directories of the suite ). -QC: list all configuration files of the suite (find the file names under/etc ). -QD: list the files contained in the dependency suites related to this suite (required)-QF: The names of the files that are followed by them to find out which file belongs to the ungd package.
Query the information contained in an RPM file:-QP [icdlr]: Note: All parameters followed by-QP are subject to the instructions described above, but the purpose is only to find information in an RPM file, this is not the information of installed suites.