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