How to Install RPM Packages on Linux? - GeeksforGeeks (2024)

Last Updated : 11 Jul, 2022

Improve

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

How to Install RPM Packages on Linux? - GeeksforGeeks (1)

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

sudo rpm -i mypackage.rpm

How to Install RPM Packages on Linux? - GeeksforGeeks (2)

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

How to Install RPM Packages on Linux? - GeeksforGeeks (3)

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

How to Install RPM Packages on Linux? - GeeksforGeeks (5)

Another process to uninstall RPM packages is using yum.

To uninstall using yum, the terminal command will be –

sudo yum remove packagename

How to Install RPM Packages on Linux? - GeeksforGeeks (6)


Like Article

Suggest improvement

Share your thoughts in the comments

Please Login to comment...

How to Install RPM Packages on Linux? - GeeksforGeeks (2024)
Top Articles
Latest Posts
Article information

Author: Kelle Weber

Last Updated:

Views: 5880

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Kelle Weber

Birthday: 2000-08-05

Address: 6796 Juan Square, Markfort, MN 58988

Phone: +8215934114615

Job: Hospitality Director

Hobby: tabletop games, Foreign language learning, Leather crafting, Horseback riding, Swimming, Knapping, Handball

Introduction: My name is Kelle Weber, I am a magnificent, enchanting, fair, joyous, light, determined, joyous person who loves writing and wants to share my knowledge and understanding with you.