20 Practical Examples of RPM Commands in Linux

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

42 Responses

  1. Ricky Tigg says:
    $ which rpmdb_verify

    /usr/bin/which: no rpmdb_verify in (/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)

    rpm {–initdb|–rebuilddb} [-v] [–dbpath DIRECTORY] [–root DIRECTORY]
    Red Hat, Inc 29 June 2010

    $ cat /etc/redhat-release
    Fedora release 29 (Twenty Nine)
  2. Atul Chadha says:

    How to rebuild corrupted RPM Database needs correction, the directory is /var/lib/rpm rather than /var/lib for removal of __db files

    • Ravi Saive says:


      To rebuild corrupted RPM database, fir remove /var/lib/rpm/__db* files to avoid stale locks.

      # cd /var/lib
      # rm __db*

      After that Rebuild RPM database using following commands.

      # rpm --rebuilddb
      # rpmdb_verify Packages
  3. Ajay Kumar says:

    Verify : It is used to query about different RPM packages.
    Query : It is used for the verification of any RPM package.

    It seems you have interchanged the definitions of Verify and Query.

  4. Kingsley Felix says:

    how to remove ‘make’ and ‘gcc’?

  5. Jose says:

    I am learning so much with your website. Thanks a lot, I really appreciate it.

  6. nevis says:

    I love your site man. thanks lots!

  7. kalyan says:

    how to check the package with rpm command before installing .

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.