Ubuntu

How to Install RPM Packages on Ubuntu 22.04

RPM package manager is installed to use the RPM packages on RHEL/CentOS-based distributions of Linux, but the RPM packages can also be installed on Ubuntu. In this blog, different methods of installing the RPM packages on the latest versions of Ubuntu, which is Jammy Jellyfish, have been explained.

How to Install RPM Packages on Ubuntu

There are two different approaches to installing RPM packages on Ubuntu, either by directly installing them or by converting them into Debian packages. For both methods, a third-party application, alien, is required to be installed using the command:

$ sudo apt install alien - y

The alien software has been installed.

Method 1: How to Install RPM package directly on Ubuntu 22.04

In this method, the alien package manager has been used to install the RPM packages on Ubuntu, for better understanding, install the RPM package of firefox using the alien package manager with its “i” option:

$ sudo alien -i firefox.rpm

The RPM package of Firefox has been successfully installed on Ubuntu.

Method 2: How to install RPM Package by converting it into Deb package on Ubuntu

Another approach to install the RPM package on Ubuntu is by converting it into some Debian package. To do so, install the package using the alien package manager without utilizing the -i option, for example, to convert the RPM package of Firefox:

$ sudo alien firefox.rpm

After the above command is executed, the package is converted to a Debian package which can be installed using the command:

$ sudo dpkg -i firefox_78.4.1-2_amd64.deb

The package will install after the complete execution of this command.

Conclusion

The third-party application, Alien package manager can be installed on Ubuntu for managing the RPM packages. In this blog, two different approaches are explored to install the RPM packages on Ubuntu Jammy Jellyfish.

About the author

Hammad Zahid

I'm an Engineering graduate and my passion for IT has brought me to Linux. Now here I'm learning and sharing my knowledge with the world.