Monday, March 22, 2010

Installing & Uninstalling an RPM Package on Ubuntu

Installing software on Ubuntu usually entails using Synaptic or by using an apt-get install command from the terminal. Unfortunately, there are still a number of packages out there that are only distributed in RPM format.
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.
Run the below 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,Run the below command

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.

Uninstall Package
To uninstall the .deb package


sudo dpkg -r packagename.deb


No comments: