Friday, April 4, 2008

How to convert .rpm to debian or .deb to .rpm?

We can use “dpkg” tool to install “debian” packages on Ubuntu/ Debian systems. But, how do you install Red Hat .rpm packages in these systems?

Actually there is no direct method to install these .rpm files on these systems.

Solution,

There is a program called “Alien” which can be used to convert .rpm file to debian format.

Install Alien on your system,

$sudo apt-get install alien

Convert the package.rpm into a package.deb,

$alien -k rpm_file_name.rpm

To install new .deb file on your system,

$sudo dpkg -i deb_file_name.deb


Not only this, Alien can be used to convert debian format to .rpm format also.

To convert package .deb to package .rpm

$alien -r deb_file_name.deb

Google