ubuntu rpm软件包_在Ubuntu Linux上安装RPM软件包

ubuntu rpm软件包_在Ubuntu Linux上安装RPM软件包

ubuntu rpm软件包

Installing software on Ubuntu usually entails using Synaptic or by using an apt-get command from the terminal. Unfortunately, there are still a number of packages out there that are only distributed in RPM format.

在Ubuntu上安装软件通常需要使用Synaptic或从终端使用apt-get命令。 不幸的是,仍然有许多仅以RPM格式分发的软件包。

There’s a utility called Alien that converts packages from one format to the other. This doesn’t always mean that an rpm will work on your system, though. You will need to install some prerequisite software packages in order to install alien, however. These packages include gcc and make.

有一个名为Alien的实用程序,可以将包从一种格式转换为另一种格式。 但是,这并不总是意味着rpm将在您的系统上运行。 但是,您将需要安装一些必备软件包才能安装Alien。 这些软件包包括gcc和make。

Run this command to install alien and other necessary packages:

运行以下命令以安装Alien和其他必要的软件包:

sudo apt-get install alien dpkg-dev debhelper build-essential

须藤apt-get install Alien dpkg-dev debhelper build-essential

To convert a package from rpm to debian format, use this command syntax. The sudo may not be necessary, but we’ll include it just in case.

要将软件包从rpm转换为debian格式,请使用此命令语法。 sudo可能不是必需的,但为了以防万一,我们将其包括在内。

sudo alien packagename.rpm

须藤外星人packagename.rpm

To install the package, you’ll use the dpkg utility, which is the internal package management tool behind debian and Ubuntu.

要安装软件包,您将使用dpkg实用程序,它是debian和Ubuntu之后的内部软件包管理工具。

sudo dpkg -i packagename.deb

须藤dpkg -i packagename.deb

The package should now be installed, providing it’s compatible with your system.

现在应该安装该软件包,前提是它与您的系统兼容。

翻译自: https://www.howtogeek.com/howto/ubuntu/install-an-rpm-package-on-ubuntu-linux/

ubuntu rpm软件包