20 Practical Examples of RPM Commands in Linux

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...

41 Responses

  1. 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:

      @Atul,

      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
      
  2. 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.

  3. Kingsley Felix says:

    how to remove ‘make’ and ‘gcc’?

  4. Jose says:

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

  5. nevis says:

    I love your site man. thanks lots!

  6. 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.