Home » Home » HOW TO: convert .rpm to .deb file and Vice-Versa ?

rpm_deb

Hi folks! This tutorial will show you the process of converting the Package Mangers that is .rpm to .deb or to reverse the process as well. To do this work, there are plenty of tools around the Internet, but I recommend to use Alien. Okay, let me explain Package Manger before heading into the topic. Package Manager is a collection of software tools to automate the process of installing, upgrading, configuration and purging software packages in a consistent manner.  It typically maintains a database of software dependencies and version information to prevent software mismatches and missing prerequisites.

There are two widely used Package Managers its, ( .Deb )  for Debian based Operating System such as Ubuntu, Mint etc… and another is ( .rpm ) Red Hat Package Manger for Red Hat based Operating System such as Fedora, Cent OS etc…  you may find few software package which supports either of one Package Manager, but it always put us down for our requirement. So there is a tool called Alien, which converts rpm, dpkg, stampede spl and slakware tgz file formats.

Before starting I want you to be aware that 

 

“Alien should not be used to replace important system packages, like sysvinit, shared libraries, or other things that are essential for the functioning of your system. Many of these packages are set up differently by Debian and Red Hat, and packages from the different distributions according to their architecture they cannot be used interchangeably. In general, if you can’t uninstall the package without breaking your system, don’t try to replace it with an alien version.”

 

Demonstration would be performed in Ubuntu Operating System, to get install the Alien package in Ubuntu enter the following commands in Terminal  

# sudo apt-get update

# sudo apt-get install alien

The process of package conversion starts, 

 

To Convert .deb package to .rpm package 

# sudo alien -r <package_name.deb>

 

To convert .rpm package to .deb package

# sudo alien -d <package_name.deb> 

 

To convert .rpm package to Solaris package

# sudo alien -p <package_name.rpm>

 

To convert .deb package to Solaris package

# sudo alien -p <package_name.deb>

 

After the conversion of .rpm to .deb, you can install the converted .deb package by following command 

# sudo dpkg -i <package_name.deb> 

 

To install .rpm package 

# sudo alien -i <package_name.rpm>

 

To test the generated .deb package 

# sudo alien -t <package_name.deb>

 

To test the generated .rpm package 

# sudo alien -t <package_name.rpm>

 

To display the running conversion process in terminal

# sudo alien -v package_name

 

Most important command to know before staring the conversion process

# man alien

 

 

Above command will display all other hidden options in alien.

The best thing about Alien is going to appear in GUI for essay access in coming days.   

Hope you enjoyed the article, please feel free to drop your comments.. :)

 

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA Image

*