Install a RPM file in Ubuntu/Linux – Convert RPM files to DEB packages


Read {count} times since 2020

Some programs will only have an RPM file which can be downloaded and can be installed. But most of the people don’t know how to install. If you open the RPM file you will see the archive in Archive Manager.

This post will help you to convert RPM files to DEB packages which we can install in Linux.
Open the terminal (Applications ▸ Accessories ▸ Terminal) or by pressing CTRL + F2.
Install Alien package to convert the RPM file by using the following command.

sudo apt-get install alien dpkg-dev debhelper build-essential

After installation we can convert the file. For that use this command.

sudo alien file location

Replace file location on the above command with the source of your file. For Example :

sudo alien Downloads/wine-1.3.rpm

The process would take some minutes depending on the size of the RPM file.
After the process open the folder where your RPM file is. You would see another file with the same name with the only difference that it’s a DEB package.
Open the DEB package and install it using GDebi Package Installer.

That’s it !! Hope this worked for you. If it didn’t worked Tell the problem in the comments and I will help you.