17 C
Texas

Installing RPM on Ubuntu!?!?!?

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)!

- Advertisement -

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!

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article