How to Install RPM Packages on Linux?
Last Updated : 20 Feb, 2025
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 of RPM Packages on Linux
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

Conclusion
Red Hat Package Manager (RPM) is a strong, popular package manager for Linux which provides ease of software installation, update, and removal. The package was created for Red Hat Linux but also supported by some other Linux variants like Fedora, OpenSUSE, and Ubuntu. The file format.rpm supports efficient package handling, while verification with GPG and MD5 adds security features. RPM packages can be installed using the rpm or yum command by users, thus making it easy to manage software. Software installation, upgrading, or uninstallation is a task that requires one to be an RPM package management master in Linux for effective system administration.
Similar Reads
How to Install Packages in Python on Linux? To install a package in python, we use pip. The pip is a python package manager. In this tutorial, we will be discussing how we can install packages in python on a Linux system. To install packages in python on Linux, we must have python and pip installed on our Linux machine. As python comes preins
2 min read
How to Install PHP on Linux? PHP is a popular server-side scripting language that is especially used in web development. If you're working on a Linux environment, whether it's a personal development setup or a production server, you will likely need PHP installed. In this article, we will see the step-by-step guide to install P
2 min read
How to Install "Python-PyPDF2" package on Linux? PyPDF2 is a Python module for extracting document-specific information, merging PDF files, separating PDF pages, adding watermarks to files, encrypting and decrypting PDF files, and so on. PyPDF2 is a pure python module so it can run on any platform without any platform-related dependencies on any e
2 min read
How to Install Python-web2py package on Linux? Web2py is a Python package that helps web developers to create dynamic online content. Although a web developer may construct a form from scratch if necessary, Web2py is meant to assist decrease tiresome web development activities like building web forms from scratch. So, in this article, we'll use
2 min read
How to Install "Python3-mpi4py" package on Linux? Mpi4py is a Python package that implements the Message Passing Interface (MPI) standard. It is built on top of the MPI specification and provides an API based on the standard MPI-2 C++ bindings. This library may be installed using both the pip manager and the apt packager. Python2 and Python3 are su
2 min read
How to Install Pytho-BioPython package on Linux? Biopython is a collection of publicly accessible Python libraries for biological computing built by a multinational team of developers in Python 3. BioPython is a collaborative effort to provide Python modules and apps that fulfill the demands of present and future bioinformatics research. So, in th
2 min read