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. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  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.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Linux BASH Programming Cookbook
Getting Started with Ubuntu 16.04
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

30 Responses

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

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

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

  4. Raheem Khan says:

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

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

  6. Rashid Hussain says:

    Good Dear , carry on

  7. Amit Singh says:

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

  8. 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
  9. 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 *

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?