• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How To Install or Update a RPM File on Linux (CentOS/RHEL & Fedora)

Written by Rahul, Updated on July 31, 2020

RPM (Redhat Package Manager) is an powerful package management utility build for the Redhat based system. Which is responsible for the create distributable packages for your applications. It also used for the installing, updating and remove of packages from any Redhat based systems.

This tutorial, will help you to understand about uses of rpm command line utility. After reading this you will understand the installation, updation or removal of RPM packages from your system.

Syntax

rpm -i package-1.2.3.rpm

How to Install .rpm File

Use rpm command to install any packages on Redhat based systems. For install a package use -i command line switch followed with package path on your system.

rpm -i package-1.2.3.rpm 

The above command do not search for required dependencies of the packages. If the dependencies are not installed on your system, the above command will fail.

If your system is connected with Internet, Use YUM or DNF package manager to install downloaded rpm file. This will help you to install dependencies required for the package.

yum localinstall package-1.2.3.rpm       ## Using yum command  
dnf localinstall package-1.2.3.rpm       ## Using dnf package  

Upgrade .rpm Package

Use “-U” command line switch to upgrade the current packages installed on your system. This will also install package if package is not already installed.

rpm -U package-1.2.3.rpm 

Remove .rpm Package

In case if we need to remove any package use -e command line switch with the package name.

rpm -e package 

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Leave a Reply Cancel reply

Popular Posts

  • How to Install Python 3.9 on CentOS/RHEL 7 & Fedora 32/31 0
  • How To Install VNC Server on Ubuntu 20.04 1
  • How To Install NVM on macOS with Homebrew 0
  • (Solved) apt-add-repository command not found – Ubuntu & Debian 0
  • How to Install .NET Core on Debian 10 0
© 2013-2020 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy