
RPM or Red Hat Package Manager is a free, open-source package management system.
The RPM package management system is written in C and Perl programming languages for Linux operating systems.
Many other distributions, such as Fedora, AlmaLinux, CentOS, and OracleLinux, use it. The Red Hat distributions are Debian and Ubuntu.
You can install RPM packages on Ubuntu 22.04 in two different ways. It is a very easy process that may take a couple of minutes. Let’s dive in!
Table of Contents
Prerequisites
- A server with Ubuntu 22.04 as OS
- User privileges: root or non-root user with sudo privileges
Step 1. Update the System
Before installing the RPM packages, we need to update the system packages to the latest available versions.
Step 2. Install Alien
Alien is an application used for installing the RPM packages directly or converting the RPM packages into Debian packages. It can install the RPM packages both ways. To install Alien execute the following command:
To check the installed Alien version, execute the following command:
You should receive the following output:
Step 3. Install RPM packages with the “i” option
This method installs the RPM packages directly, specifying the “i” option in the Alien command. Let’s download the Google Chrome .rpm package and install it with the Alien command.
To download the Chrome .rpm package execute the following command:
Once downloaded, install it with the command below:
The installation will start and will look like this on the output below:
Step 4. Install RPM packages by converting them to Deb packages
The second method is converting the .rpm package to a .deb package. Let’s first download the Firefox rpm package with the following command:
Once the file is downloaded, we need to convert the .rpm package to the .deb package with the command below:
After this command, the package is converted to a .deb package. To check this, execute the command below:
You should get the following output:
Now, we can install the Firefox .deb package with the following command:
That was all. You successfully installed the Alien application to install the RPM packages on Ubuntu 22.04.
If you do not want to do this alone, sign up for one of our NVMe VPS plans and submit a support ticket. Our admins are available 24/7 and will start to work on your request immediately. Always trust our epic support.
If you liked this post on installing RPM packages in different ways on Ubuntu 22.04, please share it with your friends on social networks or simply leave a reply below. Thanks.