Download for Centos/RHEL 6
Fetch some needed dependencies
$ sudo yum -y install python rpm-build make m4 gcc-c++ autoconf automake redhat-rpm-config mod_dav_svn mod_ssl mod_wsgi
$ sudo rpm -UVH alien-8.81-2.noarch.rpm
Alien can be used for packages such as pkg, tgz, lsb, deb, and rpm
Convert a deb or slack package to rpm as below
$ sudo alien -r <deb_package_name>
$ sudo alien -r <slack_package_name>
You may also need the --scripts flag
$ sudo alien -r --scripts <deb_package_name>
Converting other packages
$ sudo alien --to-tgz file.pkg Convert To TGZ Package
The image below shows alien being used to convert a Speedcrunch deb package to a usable rpm one. (Ignore the 'find').
|Alien Centos 6 convert deb to rpm|
Is is advisable to use Alien carefully as you can get some unrewarding results on occasions, you may be restricted by the unavailability of dependencies which can happen a lot. It's always best to check first if there is a suitable ready built rpm or if the program can be easily compiled from source. It can be a life saver if there is something you particularly want but can't get by any other means.
Package Converter (requires Alien above)
There is also available a free GUI to use with Alien called simply 'Package Converter' written in Python by Foxoman.
Once Alien is installed as above, download package-converter-3002-2noarch, then install and run it as below.
$ sudo rpm -Uvh package-converter-22.214.171.124-2.noarch.rpm
|Package Converter Centos 6|
See Fluxbox key bindings if you are using Fluxbox.