Installing RPM on Ubuntu!?!?!?

Windows Articles

Configure Samba File share Services with Ubuntu 20.04 LTS

Here, Today! let's discuss samba file share service with Ubuntu 20.04 LTS. If you need to share files between Linux and MS Windows...

Install Matomo on Ubuntu 20.04

Hello, friends. In this post, you will learn how to install Matomo on Ubuntu 20.04. It's quite useful to measure the traffic to our...

How to change DNS in Windows 10

Hi! Today we will talk a bit about networks. In fact, we will touch on a topic related to connectivity. Specifically we will see...

The new Windows 10 file explorer will arrive with 21H2 update.

Hello! Microsoft does not stop working (except at Christmas) to continue polishing to Windows 10. In fact, users are gradually receiving the 20H2 update....

How to create an FTP server in Android

Hello! How are you? Currently sharing files from your PC to Android can be more comfortable and easy, without the need to use a...

RPM: Yo, UBUNTU!!! [spills some RPM on Ubuntu]

Ubuntu: WT…!?!?!?!?!?!?

Well, I’ve been in the same situation before. I’m in need of a certain package that’s only available as an RPM package my internet connection is off! Or, I’m just being a lazy Slowpoke, too damn LAZY to search for the equivalent Ubuntu package (well, anything as the excuse of installing RPM on Ubuntu)!

Of course, as Ubuntu is the most popular and user-friendly Linux distro of all, it has almost all the Linux packages available. Sometimes, you may find yourself in such a situation when you need an RPM package to work on your Ubuntu/Debian system. Or, you’re feeling too venturous and willing to install an RPM package into your system!

It’s quite possible to perform the action. However, don’t be a Slowpoke like me to look for the Debian/Ubuntu equivalent package of the RPM file. RPMs are designed to work on distros that use RPM, for example, Fedora, OpenSUSE, CentOS, and RHEL etc.

Let’s check out on installing RPM on Ubuntu.

Note – The following techniques don’t guarantee success at all. Use them at your own risk.

RPM tools for Ubuntu

For the purpose, “alien” is the right tool. The original “rpm” is also available on the default Ubuntu repository.

  • alien

Let’s get started with “alien”. Add the “universe” repository into your system –

sudo add-apt-repository universe

Update the “apt” cache –

sudo apt update

Now, install “alien” –

sudo apt install alien

  • rpm

Run the following command –

sudo apt install rpm

Installing RPM

Let’s grab an RPM package to play with. I’m grabbing the GIMP RPM package.

Now, you can install the RPM package using both “alien” and “rpm”.

Note – the recommended method is using “alien” for all RPM manipulation. However, if you understand what you’re doing, only then you should use the “rpm”.

  • alien

You can either convert the RPM package into a DEB file and install it, or directly install the RPM package.

  • Converting to DEB

Run the following command –

sudo alien <package_name>.rpm

Install the DEB package generated from the RPM –

sudo dpkg -i <package_name>.deb
  • Directly installing the RPM

Run the following command –

sudo alien -i <package_name>.rpm

  • rpm

For installing any RPM package with “rpm”, follow the following command structure –

rpm -U <package_name>.rpm

This method won’t solve the dependency issues. You need to manually install all the dependencies by yourself.

Enjoy!

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Configure Samba File share Services with Ubuntu 20.04 LTS

Here, Today! let's discuss samba file share service with Ubuntu 20.04 LTS. If you need to share files between Linux and MS Windows...

Install Matomo on Ubuntu 20.04

Hello, friends. In this post, you will learn how to install Matomo on Ubuntu 20.04. It's quite useful to measure the traffic to our...

How to change DNS in Windows 10

Hi! Today we will talk a bit about networks. In fact, we will touch on a topic related to connectivity. Specifically we will see...

The new Windows 10 file explorer will arrive with 21H2 update.

Hello! Microsoft does not stop working (except at Christmas) to continue polishing to Windows 10. In fact, users are gradually receiving the 20H2 update....

How to create an FTP server in Android

Hello! How are you? Currently sharing files from your PC to Android can be more comfortable and easy, without the need to use a...
x