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. Vikas Singh says:

    Can you please let me know “How to find which package/packages is recently uninstalled from linux (RHEl/centos) system?”

    Thank you.

  2. Sandeep says:

    How can we set auto update of security rpm packages? How we can update or install a single package on multiple machines?

    • Ravi Saive says:


      Really good question, never thought of having an auto update for security packages, but will look surely write a detailed guide on how to install on security updates in Linux, just stay tuned for this article, will push soon..

  3. suresh says:


    I have several rpm packages present in different folder, say 2 RPM files per folder, and total 70 folders are there like this.

    I need to install all the rpm’s which are present in different folder in single shot.

    how to do this, please suggest

  4. Naresh says:

    As root user , I installed a package using rpm -ivh . All the files and folders are with a user:group which i don’t want.
    How can i install with specific user:group?

    • Ravi Saive says:


      That’s not possible, you can’t install packages with specific user permission, and in Linux only root or sudo privileged user can install packages with its own permission, yes but you change the ownership to whatever user only after installation of packages..

  5. Raheem Khan says:

    I Want SQL command line in RHEL 6, what to do??? and also location of rpm packages in linux??

  6. kattanaresh says:

    Hai tecmint,

    Is there any log file for rpm package.not yum


    • Ravi Saive says:


      Sorry your question is not clear to me, what you trying to say? you mean to have a log for all installed RPM files? If yes, then you should look for yum-utils tools that will provide more information about RPM packages..

  7. Rashid Hussain says:

    Good Dear , carry on

  8. Amit Singh says:

    I want to update all rpm package in linux. what is command. please tell me

  9. javed says:

    Q : how to automatically install dependencies of installing rpm package?? if one rpm package requires 10 dependencies then I need to download 10 dependencies separately?

    • Ravi Saive says:

      You can use following way to install all dependencies of a RPM package.

      yum localinstall rpmpackage.rpm
  10. roger says:

    The “–nodeps” in #4 doesn’t print out quite right in html it makes it look like a single dash…fwiw.

Got something to say? Join the discussion.

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