Linux rpm query command

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.