Friday, June 13, 2014

How to Convert DEB to RPM & RPM to DEB Packages

2:12 PM

DEB     - A Debian "package", or a Debian archive file, contains the executable files, libraries, and documentation associated with a particular suite of program or set of related programs. Normally, a Debian archive file has a file name that ends in .deb


RPM - Red Hat Package Manager or RPM Package Manager (RPM) is a package management system. The name RPM variously refers to the .rpm file format, files in this format, software packaged in such files, and the package manager itself. RPM was intended primarily for Linux distributions; the file format is the baseline package format of the Linux Standard Base.


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

Install deb packages using the dpkg command — Debian: How to Install or Remove DEB Packages Using dpkg
 

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.
 

Written by

0 comments :

Post a Comment

 

© 2014 Linux Storages | Updated . All rights resevered. Designed by Templateism