How to install rpm package in Ubuntu system

Ubuntu's package format is deb, and the RPM format package is the software package used by Red Hat related systems. Wouldn't it be a pity when we see a package we want to use if it's in RPM format and your OS is Ubuntu? In fact, in the Ubuntu system, it is also possible to effectively install RPM format packages through certain methods. The following methods are described below:

First, we need to install the alien software:

$ sudo apt-get install alien ##alien is not installed by default, so install it first

$sudo alien xxxx.rpm ##Convert rpm to deb, a xxxx.deb will be generated after completion

$sudo dpkg -i xxxx.deb ##The xxxx software can be installed

Note that converting the deb package with alien does not guarantee a complete and smooth installation, so if you can find the deb package, it is better to use the deb package.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324343602&siteId=291194637