Alien is occasionally useful for converting a package which you might find elusive in rpm format, from a deb, slack or other package. It should be used with care and NEVER for system critical packages. It is not an officially supported program so again, caution is advised. This is for any architecture and below there are some command line examples.
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
$ sudo alien --to-slp file.pkg Convert To Solaris 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-18.104.22.168-2.noarch.rpm
It has Add, Folder and Convert buttons which are pretty self explanatory and is easy to use, enabling you to convert a variety of packages from different formats. Just set the final package type & any flags such as --scripts, set the source and convert.
|Package Converter Centos 6|
See Fluxbox key bindings if you are using Fluxbox.
Labels: Alien-8.81-2.noarch.rpm, Centos 6, Package Converter, RHEL