RPM is a package management system. In this post, we will show you how to install RPM packages on Ubuntu.
RedHat based operating systems uses .rpm files meanwhile Debian-based systems use .deb files. You can’t install .rpm files in Debian based system directly and same goes for .deb files too. We need to port these packages to each other with the help of respective package management system.
Install RPM Packages On Ubuntu 18.04
Basically, There are two ways to install an RPM package. One of them is to convert the .rpm file into a .deb file and another one is by installing the .rpm file. Let’s check out the method to install RPM packages on Ubuntu.
You need to install a package called “Alien”. It will convert .rpm files into .deb files. Let’s install Alien by adding a software repository. Run the following command in your terminal to add repo of Universe.
sudo add-apt-repository universe
sudo apt-get update
Install Alien by executing following command in your terminal:
sudo apt-get install alien
After installing alien, now you can convert .rpm files to .deb files. Go to the folder where you have .rpm file and run the following command:
sudo alien <name of package>.rpm
Now, your files will get converted to .deb format. You can easily install the converted file using the following command.
sudo dpkg -i <name of package>.deb
Install RPM Package Directly In Ubuntu
Run the following command to install rpm package directly in Ubuntu.
sudo alien -i <name of package>.rpm
It will install it directly.