Saturday, August 15, 2009

Convert RPM package to deb package format on Ubuntu

How to convert RPM package to deb package format on Ubuntu, and install it with dpkg?

Step 1: Install the required packages

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

Step 2: Convert the RPM file


Run
sudo alien thepackagename.rpm
or
fakeroot alien thepackagename.rpm
and a .deb file called thepackagename.deb will be generated.

Step 3: Use dpkg to install the package

sudo dpkg -i thepackagename.deb