How to install RPM packages on Ubuntu 22.04

The RPM package manager is installed to use the RPM packages on RHEL/CentOS based Linux distributions, but the RPM packages can also be installed on Ubuntu. This blog has explained different methods to install the RPM packages on the latest versions of Ubuntu i.e. Jammy Jellyfish.

How to install RPM packages on Ubuntu

There are two different approaches to installing RPM packages on Ubuntu, either by installing them directly or by converting them to Debian packages. Both methods require installing a third-party application, Alien, with the following command:

$ sudo suitable To install foreign – y

The third-party software was installed.

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

In this method, the Alien package manager was used to install the RPM packages on Ubuntu. For a better understanding, install the Firefox RPM package using the Alien package manager with its “i” option:

$ sudo extraterrestrial -I firefox.rpm

Firefox RPM package successfully installed on Ubuntu.

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

Another approach to install the RPM package on Ubuntu is to convert it to a Debian package. To do this, install the package using the foreign package manager without using the -i option, for example to convert Firefox’s RPM package:

$ sudo alien firefox.rpm

After running the above command, the package will be converted into a Debian package that can be installed with the following command:

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

The package will be installed after the completion of this command.

Conclusion

Alien Package Manager third-party application can be installed on Ubuntu to manage the RPM packages. This blog explores two different approaches to install the RPM packages on Ubuntu Jammy Jellyfish.

Related Posts