How to Install RPM Package in Linux Ubuntu

December 8, 2025 / Ubuntu

Many Ubuntu users eventually come across software that’s only available as an RPM file, which is when the question of how to install an RPM package in Ubuntu usually comes up. Since Ubuntu uses the DEB packaging system, RPM files don’t install directly, but the good news is that you can still use them safely through conversion tools. In this guide, we’ll walk you through simple methods used by Linux admins and developers in real-world setups. 

Why Ubuntu Doesn’t Support RPM Files Natively 

Ubuntu is based on Debian, which relies on DEB packages and the APT package manager. RPM files belong to Red Hat-based distributions like RHEL, CentOS, Alma Linux, and Fedora.

Because of this packaging difference, Ubuntu cannot process RPM packages directly and needs a conversion tool. 

Method 1: Install RPM on Ubuntu Using Alien 

Alien is a popular tool that converts RPM packages into DEB formats. It’s simple, safe, and widely used. With the following steps, you can install an RPM package in Linux.

1: Update system packages

sudo apt update

2: Install Alien

sudo apt install alien

3: Convert the RPM file to DEB

sudo alien package-name.rpm

Alien creates a .deb file in the same folder. 

4: Install the converted DEB package

sudo dpkg -i package-name.deb

5: Fix dependency issues (if any)

sudo apt –fix-broken install

Tip: Use Alien only for trusted RPM sources to avoid compatibility issues. 

Method 2: Extracting an RPM File Without Installing It

You can extract an RPM file to manually access binaries or configuration files. 

1. Install rpm2cpio

sudo apt install rpm2cpio

2. Extract the RPM content

rpm2cpio package-name.rpm | cpio -idmv

This extracts all files into your current directory.

Common Errors While Installing RPM on Ubuntu and How to Fix Them

1. Dependency Issues

Run: 

sudo apt –fix-broken install

2. Alien not converting due to missing utilities

Update Alien: 

sudo apt install –reinstall alien

3. RPM architecture mismatch

You may be trying to install a package meant for another CPU architecture.
Check architecture:

dpkg –print-architecture

Relevant Outbound Links for SEO Authority

Conclusion 

Installing RPM packages on Ubuntu is easy when you choose the right method. Converting the RPM file to DEB using Alien is the most reliable approach for regular use. Whether you are experimenting with cross-platform packages or running a development environment, Ubuntu gives you the flexibility to work with RPM files smoothly. 

Also, Learn How to check the Ubuntu version with this easy-to-follow step-by-step guide.