Home > Article > Convert DEB to RPM or RPM to DEB

Convert DEB to RPM or RPM to DEB

Now a days, there is more than one family linux is popular. Ubuntu, Xubuntu, Kubuntu and LinuxMint are Debian family linux, while CentOS, Fedora, Mandriva, Mageai and ROSA are RedHat family linux. and both have its own software distribution architecture, Debian family uses .deb file while RedHat family users .rpm file. but sometimes user need to convert DEB to RPM or RPM to DEB. what would be the solution ?

here is the solution for that problem.

1. Convert RPM to DEB

      Install alien command on Debian / Ubuntu

Install alien command on Ubuntu as shown below.

# sudo apt-get install alien

 Use alien command to convert rpm to deb file

The following example converts the linuxconf-devel rpm file to linuxconf-devel deb file. Once you generate the deb file, you can install it on Ubuntu or Debian.

# alien linuxconf-devel-1.16r10-2.i386.rpm
linuxconf-devel_1.16r10-3_i386.deb generated

2. Convert DEB to RPM

      Use alien to convert deb to rpm file

Use alient -r option to convert a deb file to rpm file. The following example converts libsox deb file to libsox rpm file. Once you generate the rpm file, you can install it on Red Hat, or CentOS.

# sudo alien -r libsox1_14.2.0-1_i386.deb
libsox1-14.2.0-2.i386.rpm generated
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: