Open In App

How to Install RPM Packages on Linux?

Last Updated : 11 Jul, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Red Hat Package Manager or RPM is a free and open-source package management system for Linux. The RPM files use the .rpm file format.  RPM package manager was created to use with Red Hat Linux, but now it is supported by multiple Linux distributions such as Fedora, OpenSUSE, Ubuntu, etc.

RPM packages can be cryptographically verified with GFG and MD5. They support automatic build-time dependency evaluation.

In this article, we are going to discuss How to install RPM packages on Linux.

Installation

Step 1: First, you need to download the installation file. This file can be downloaded using a browser or wget.

To download it using wget, the terminal command is 

wget http://example.com/downloads/mypackage.rpm

 

Step 2: Next, install the package using the following command in the terminal window –

sudo rpm -i mypackage.rpm

 

If the package is already installed, then you can use the following command to upgrade it –

sudo rpm -U mypackage.rpm

Another process is to use yum for the installation of RPM packages.

To install using yum, use the following command in terminal –

sudo yum install packagename

 

Now, the RPM package is successfully installed.  Here we have installed vim editor using an RPM package.

 

Removal of RPM Packages

If you want to remove or uninstall RPM packages from the system, then you can use the following terminal command –

sudo rpm -e packagename

 

Another process to uninstall RPM packages is using yum.

To uninstall using yum, the terminal command will be –

sudo yum remove packagename

 


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads