Install an RPM Package on Ubuntu Linux(from how to geek)

来源:互联网 发布:百度云账号淘宝怎么搜 编辑:程序博客网 时间:2024/04/30 03:39

Installingsoftware on Ubuntu usually entails using Synaptic or by using anapt-get command from the terminal. Unfortunately, there are still anumber of packages out there that are only distributed in RPM format.

There’s a utility called Alien that converts packages from oneformat to the other. This doesn’t always mean that an rpm will work onyour system, though. You will need to install some prerequisitesoftware packages in order to install alien, however. These packagesinclude gcc and make.

Run this command to install alien and other necessary packages:

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

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

sudo alien packagename.rpm

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

sudo dpkg -i packagename.deb

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

原创粉丝点击