10 Simple Steps to Install RPM Packages on Ubuntu

Written by

Reviewed by

Last updated: July 1, 2023

Expert verified

SVG Image


To install RPM packages on Ubuntu, you can follow these steps:

  1. Update package lists: Run sudo apt update in the Terminal.
  2. Install rpm and alien: Use sudo apt install rpm alien command.
  3. Download the RPM package from a trusted source.
  4. Convert and install: Navigate to the package directory and run sudo alien --to-deb package.rpm to convert, then sudo dpkg -i package.deb to install.

To install RPM packages on Ubuntu successfully, follow these three best practices: verify package authenticity, resolve dependencies efficiently, and avoid mixing package managers. Be aware of three common errors: dependency conflicts, signature verification failure, and failed dependency resolution. By adhering to these practices and addressing potential errors, you can ensure smooth RPM package installations on Ubuntu.

Continue reading the guide below to learn to install RPM packages on Ubuntu, best practices, and common errors that can occur.

RPM packages offer a standardized format for software distribution, enabling you to access a vast array of applications, libraries, and tools. With their compatibility across multiple Linux distributions, RPM packages empower you to explore a diverse software ecosystem while maintaining stability on your Ubuntu system. Whether you want to install software specifically packaged in RPM format or work with cross-platform tools, understanding how to install RPM packages on Ubuntu is a valuable skill. In this comprehensive guide, I will walk you through installing RPM packages on Ubuntu, the best practices to follow, and common errors to avoid. 

How to Install RPM Packages on Ubuntu

To install RPM packages on Ubuntu, you need to have a supported version of Ubuntu installed, install the RPM package manager, ensure sufficient disk space, and have a stable internet connection for downloading packages and dependencies. Here are steps to do it:

Before installing RPM package, it’s crucial to resolve any dependencies that it may have. Follow these steps to check and resolve dependencies:

  1. Open your Terminal window.
opening terminal 19
  1. Enter the following command to update the package lists:
<strong>sudo apt update</strong>
  1. The command will update all the package lists.
updating system package list
  1. To install the rpm and alien packages, run the following command:
<strong>sudo apt install rpm alien</strong>
  1. The command will install alien and rpm on your system.
installing rpm alien for rpm packages
  1. Before installing RPM package, you must obtain it from a trusted source. In this case, I have downloaded the AnyDesk RPM package from its official website https://anydesk.com/en/downloads/linux
downloading rpm file for ubuntu
  1. Select a suitable option to download the RPM package.
downloading suitable rpm package
  1. Open a terminal and navigate to the directory where the RPM package is located. Now convert the RPM package to DEB file using the following command:
<strong>sudo alien --to-deb package.rpm</strong>

Replace package.rpm with the actual name of the RPM package file.

converting rpm package to deb package
  1. Now you can install the DEB package using the following command:
<strong>sudo dpkg -i package.deb</strong>

Replace package.deb with the actual name of the RPM package file.

installing deb package
  1. You can now access AnyDesk from the application menu.
accessing anydesk

3 Best Practices for Installing RPM Packages

Following best practices to Install RPM packages on Ubuntu are necessary to ensure smooth integration and avoid conflicts with the native DEB package management system. Here are three best practices to follow when working with RPM packages:

  • 🔒 Verify Package Authenticity Before Installation: Before installing RPM package, it is crucial to verify its authenticity to ensure that you are installing trusted software. Use cryptographic signatures to verify the integrity and origin of the package. Check for the presence of a valid GPG (GNU Privacy Guard) signature or a checksum provided by the package provider. Verifying the package’s authenticity helps prevent the installation of potentially malicious or tampered software.
  • ⚙️ Resolve Dependencies Efficiently: When installing RPM packages, it is essential to handle dependencies efficiently to ensure all required libraries and components are installed correctly. Use package management tools like dnf or yum to resolve dependencies during installation automatically. These tools can fetch and install the necessary dependencies from official repositories or trusted sources. Regularly update the package lists and repositories to ensure you have the latest dependency information. Efficient dependency resolution helps avoid compatibility issues and ensures the smooth functioning of the installed software.
  • ⚠️ Avoid Mixing Package Managers: To maintain a stable and consistent system, it is crucial to avoid mixing different package managers. While Ubuntu primarily uses the APT package management system, installing RPM packages introduces the RPM package manager. Mixing these package managers can lead to conflicts, inconsistencies, and potential system instability. Whenever possible, prioritize using DEB packages specifically designed for Ubuntu. If RPM packages are necessary, isolate them and ensure they do not interfere with the system’s native package management. Avoiding package manager mixing helps maintain a streamlined and well-managed system.

3 Common Errors When Installing RPM Packages

When installing RPM packages on Ubuntu, it’s important to be aware of potential errors that may arise. Understanding these common errors will help you troubleshoot and resolve issues effectively, ensuring successful package installations. Here are three common errors:

  • 🚫 Dependency Conflicts: One common error occurs when there are conflicts between the RPM package being installed and existing packages on the system. This can lead to file conflict errors and prevent the installation from proceeding. Resolving dependency conflicts requires careful examination of the conflicting packages and their dependencies. You may need to use the --replacepkgs flag or explore alternative methods, such as utilizing package managers like yum or dnf for automatic resolution.
  • ⚠️ Signature Verification Failure: Another error that can occur during RPM package installation is a signature verification failure. This happens when the RPM package is not signed, or the signature cannot be verified. In such cases, the installation process is halted to ensure the integrity and authenticity of the package. To address this error, you can bypass signature checks using the --nosignature flag with the rpm command. However, exercise caution and ensure that you trust the package source before proceeding.
  • Failed Dependency Resolution: Sometimes, manually resolving dependencies can be challenging, especially when multiple dependencies are involved. The package you are installing may have specific requirements that are not readily available in the repositories or on your system. In such cases, you may encounter errors related to failed dependency resolution. To tackle this issue, consider utilizing package management tools like yum or dnf to handle dependencies automatically. These tools can fetch and install the required dependencies from trusted sources, simplifying the installation process.

In Conclusion

I have provided a step-by-step guide to install RPM packages on Ubuntu, highlighted common errors, and emphasized best practices. By following the guide, being aware of potential errors, and implementing the best practices, you can ensure successful RPM package installations on your Ubuntu system.

In addition to mastering RPM package installation, there are several other aspects of Linux package management and system administration worth exploring. Here are a few recommended articles to further enhance your knowledge: Advanced Package Management Techniques for Ubuntu, Building and Creating RPM Packages from Source, and Exploring APT Package Manager. By exploring these articles, you’ll gain a deeper understanding of Linux package management, enabling you to become a proficient Ubuntu user.

Frequently Asked Questions

Is it possible to downgrade an RPM package on Ubuntu?

Yes, it is possible to downgrade an RPM package on Ubuntu. To accomplish this, use the rpm command with the --oldpackage flag. This flag allows you to install an older version of an RPM package, replacing the existing version. However, exercise caution when downgrading packages, which can lead to compatibility issues or software conflicts. It’s recommended to thoroughly test the downgraded package and ensure it meets your requirements before proceeding.

Is it possible to convert RPM packages to DEB format?

Yes, it is possible to convert RPM packages to DEB format using the alien tool. The alien command enables package format conversion, including RPM to DEB. To convert an RPM package to DEB format, you can use the following command: sudo alien -d package.rpm. Replace package.rpm with the actual name of the RPM package file. However, remember that using alien for package conversion may not always guarantee a seamless transition, as it involves converting package formats between different package management systems.

How can I update RPM packages on Ubuntu?

To update an RPM package on Ubuntu, you can use the rpm command with the -U flag followed by the updated package file. For instance, execute the following command: sudo rpm -U package.rpm. Replace package.rpm with the actual name of the updated RPM package file. This command will update the existing RPM package on your Ubuntu system with the new version. It’s important to ensure the updated package is compatible with your system and meets any dependency requirements.



Ojash is a skilled Linux expert and tech writer with over a decade of experience. He has extensive knowledge of Linux's file system, command-line interface, and software installations. Ojash is also an expert in shell scripting and automation, with experience in Bash, Python, and Perl. He has published numerous articles on Linux in various online publications, making him a valuable resource for both seasoned Linux users and beginners. Ojash is also an active member of the Linux community and participates in Linux forums.



Akshat is a software engineer, product designer and the co-founder of Scrutify. He's an experienced Linux professional and the senior editor of this blog. He is also an open-source contributor to many projects on Github and has written several technical guides on Linux. Apart from that, he’s also actively sharing his ideas and tutorials on Medium and Attirer. As the editor of this blog, Akshat brings his wealth of knowledge and experience to provide readers with valuable insights and advice on a wide range of Linux-related topics.

Share this article
Shareable URL
Prev Post

How to Install Facebook Messenger on Ubuntu [12 Easy Steps]

Next Post

How to Restart Apache in Ubuntu [3 Best Methods]

Leave a Reply

Your email address will not be published. Required fields are marked *

Read next