Alien is a program that converts between Red Hat rpm, Debian deb, Stampede slp, Slackware tgz, and Solaris pkg file formats.
When do you need Alien?
At the time you want to install a program meanwhile the only package available is from another linux distribution. For an example, your linux package is Red Head Package (.rpm) but you are using Ubuntu which use Debian Package (.deb) then you will need Alien.
How to install the program?
taufanlubis@toshiba:/usr/src/sources$ sudo apt-get install alien
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
python2.4-minimal python2.4 tango-icon-theme-common tango-icon-theme
Use ‘apt-get autoremove’ to remove them.
The following extra packages will be installed:
debhelper gettext html2text intltool-debian libbeecrypt6 libneon25 librpm4 po-debconf rpm
Suggested packages:
lsb-rpm lintian dh-make cvs gettext-doc
Recommended packages:
libmail-sendmail-perl libcompress-zlib-perl
The following NEW packages will be installed:
alien debhelper gettext html2text intltool-debian libbeecrypt6 libneon25 librpm4 po-debconf rpm
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 4228kB of archives.
After unpacking 15.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com gutsy/main html2text 1.3.2a-3build1 [90.6kB]
Get:2 http://archive.ubuntu.com gutsy/main gettext 0.16.1-2ubuntu3 [1552kB]
Get:3 http://archive.ubuntu.com gutsy/main intltool-debian 0.35.0+20060710.1 [31.6kB]
Get:4 http://archive.ubuntu.com gutsy/main po-debconf 1.0.9 [117kB]
Get:5 http://archive.ubuntu.com gutsy/main debhelper 5.0.51ubuntu3 [526kB]
Get:6 http://archive.ubuntu.com gutsy/main libbeecrypt6 4.1.2-6build1 [108kB]
Get:7 http://archive.ubuntu.com gutsy/main libneon25 0.25.5.dfsg-6build1 [103kB]
Get:8 http://archive.ubuntu.com gutsy/main librpm4 4.4.1-14.1ubuntu2 [991kB]
Get:9 http://archive.ubuntu.com gutsy/main rpm 4.4.1-14.1ubuntu2 [603kB]
Get:10 http://archive.ubuntu.com gutsy/main alien 8.68 [104kB]
Fetched 4228kB in 60s (69.9kB/s)
Selecting previously deselected package html2text.
(Reading database … 102722 files and directories currently installed.)
Unpacking html2text (from …/html2text_1.3.2a-3build1_i386.deb) …
Selecting previously deselected package gettext.
Unpacking gettext (from …/gettext_0.16.1-2ubuntu3_i386.deb) …
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from …/intltool-debian_0.35.0+20060710.1_all.deb) …
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from …/po-debconf_1.0.9_all.deb) …
Selecting previously deselected package debhelper.
Unpacking debhelper (from …/debhelper_5.0.51ubuntu3_all.deb) …
Selecting previously deselected package libbeecrypt6.
Unpacking libbeecrypt6 (from …/libbeecrypt6_4.1.2-6build1_i386.deb) …
Selecting previously deselected package libneon25.
Unpacking libneon25 (from …/libneon25_0.25.5.dfsg-6build1_i386.deb) …
Selecting previously deselected package librpm4.
Unpacking librpm4 (from …/librpm4_4.4.1-14.1ubuntu2_i386.deb) …
Selecting previously deselected package rpm.
Unpacking rpm (from …/rpm_4.4.1-14.1ubuntu2_i386.deb) …
Selecting previously deselected package alien.
Unpacking alien (from …/archives/alien_8.68_all.deb) …
Setting up html2text (1.3.2a-3build1) …
Setting up gettext (0.16.1-2ubuntu3) …
Setting up intltool-debian (0.35.0+20060710.1) …
Setting up po-debconf (1.0.9) …
Setting up debhelper (5.0.51ubuntu3) …
Setting up libbeecrypt6 (4.1.2-6build1) …
Setting up libneon25 (0.25.5.dfsg-6build1) …
Setting up librpm4 (4.4.1-14.1ubuntu2) …
Setting up rpm (4.4.1-14.1ubuntu2) …
Setting up alien (8.68) …
Processing triggers for libc6 …
ldconfig deferred processing now taking place
taufanlubis@toshiba:/usr/src/sources$ ls
How to use it?
Convert from RPM to DEB (alien -d)
But not all packages can be converted correctly. Some may still produce errors.
taufanlubis@toshiba:~/MyData/Packages$ sudo alien -d jre-6u2-linux-i586.rpm
Warning: Skipping conversion of scripts in package jre: postinst postrm prerm
Warning: Use the –scripts parameter to include the scripts.
jre_1.6.0_02-1_i386.deb generated
taufanlubis@toshiba:~/MyData/Packages$
Convert from DEB to RPM (alien-r)
You can convert also from DEB to RPM. Some work perfectly.
taufanlubis@toshiba:~/MyData/Packages$ sudo alien -r pytube_0.0.8.1-1_all.deb
pytube-0.0.8.1-2.noarch.rpm generated
taufanlubis@toshiba:~/MyData/Packages$
[…] este software: sua existência e as opções essenciais. Se quiser saber um pouco mais, leia Alien – Convert RPM to DEB or DEB to RPM, ou o site do […]
piece of shit. I followed the instuctions exatly and all it gives me is errors. why doesn’t someone build a graphical application to do this?
The most powerful part of Linux is the command line– it gives much more versatility and is quite powerful. If you can’t get alien to work for you, try looking at the man pages or compile the program from the source. Linux is not Windows– there are not as many graphical user interfaces… besides, maybe someone already put it into .deb form on a forum somewhere…
Bangor car dealers and realtors: It’ s a race to see who can rip you off the most.
i use the method but error occur says :
Warning: Skipping conversion of scripts in package RealPlayer: postinst postrm preinst
Warning: Use the –scripts parameter to include the scripts.
Unpacking of ‘RealPlayer-10.0.8_10.0.9-0.2_2.2.i586.delta.rpm’ failed at /usr/share/perl5/Alien/Package/Rpm.pm line 155.
what should i do?
yeah cool, just get a file not found error, console commands=typing in random giberish that never works
thats why god invented gui’s
just how “powerful” does alien need to be to do a bit of conveting?
If you are typing in random giberish it WILL never do what you want but at some point it will most likely break your system. Learn to use the command line or don`t use it at all. Typing/pasting in stuff you don`t fully understand is a great way to break your system.
Thanks for posting this, does a lot of the heavy lifting for me.
To all those who ‘can’t be bothered’ with the command line, swear or mis-type things and expect them to work, go back to Windows or settle down and RFTM.
My friend on Orkut shared this link and I’m not dissapointed that I came to your blog.
i use the method but error occur says :
Warning: Skipping conversion of scripts in package VMtools: postinst postrm preinst
Warning: Use the –scripts parameter to include the scripts.
what should i do?
here is a GUI for alien
http://code.google.com/p/foxoman/wiki/PackageConverter
This examples will definitely work, for the “use script” error.
The other commands without script options will do the trick!
You’ll get to love command line with time. Simply install a demo server without GUI.
Cheers everyone.
RPM TO DEB:
$ sudo alien –scripts avg71flm-r30-a0791.i386.rpm
sudo alien -i –scripts avg71flm-r30-a0791.i386.rpm
sudo alien avg-10.0.1.rpm
sudo alien -i /path/to/file.rpm
sudo alien -d jre-6u2-linux-i586.rpm
DEB TO PRM:
sudo alien -r pytube_0.0.8.1-1_all.deb
Hey maybe I would like to convert debian to rpm? Anyone ever think of that? I am running fedora, and want to use win4lin, because like it or not, there are still some things that you need a windows emulator for. I also do not like wine, as it never, and I mean never works for me. I also like fedora, so I am not about to switch to ubuntu just because the maker of win4lin has a personal bias for ubuntu. The problem is alien is itself a debian package, so it may indeed be able to convert debian to rpm, but a FAT LOT OF GOOD IT DOES ME!! How can I install alien if it isn’t in rpm to begin with? Jesus H. tap dancing Christ!
Thank you for inquiring. Been working very nice.
An excellent blog about perfect. Thank you again..
[…] Convert the SDK’s .deb packages to rpm packages using Alien: Converting from DEB to RPM […]
@Ken : try installing alien on a live-cd and run it from there to convert your package to an RPM. ;o)
[…] Linux as of yet. You can more than likely get EasyTether to work on Fedora. Download Alien: Alien ? Convert RPM to DEB or DEB to RPM Taufan Lubis – Ubuntu Linux Alien will allow you to convert .deb to .rpm which is used in Fedora. So download the ubuntu […]
Just tried converting ‘checkinstall’ from .deb -> .rpm with Alien – worked first time! Unfortunately, my joy was short-lived, ‘checkinstall’ still doesn’t function properly on Fedora – a directories issue…
I really don’t understand the thinking behind Fedora’s maintainers, essential stuff like ‘checkinstall’ should be a maintenance-priority, yet this app isn’t even in the repository and hasn’t been supported since fc6 (the last native-build I could find). I sometimes wonder if they aren’t deliberately trying to discourage people from using it – it’s as if they don’t want people building packages for themselves! (conspiracy-theory #234) Probably being payed-off my M$… 😉
I get the following message . . .
john@beast:~/.opera/temporary_downloads$ sudo alien -v –scripts fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qp –queryformat %{NAME} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qp –queryformat %{VERSION} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qp –queryformat %{RELEASE} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qp –queryformat %{ARCH} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qp –queryformat %{CHANGELOGTEXT} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qp –queryformat %{SUMMARY} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qp –queryformat %{DESCRIPTION} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qp –queryformat %{COPYRIGHT} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
error: incorrect format: unknown tag
LANG=C rpm -qp –queryformat %{PREFIXES} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qp –queryformat %{POSTIN} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qp –queryformat %{POSTUN} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qp –queryformat %{PREUN} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qp –queryformat %{PREIN} fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qcp fglrx64_4_3_0-8.28.8-1.x86_64.rpm
rpm -qpi fglrx64_4_3_0-8.28.8-1.x86_64.rpm
LANG=C rpm -qpl fglrx64_4_3_0-8.28.8-1.x86_64.rpm
mkdir fglrx64_4_3_0-8.28.8
mkdir: cannot create directory `fglrx64_4_3_0-8.28.8′: File exists
unable to mkdir fglrx64_4_3_0-8.28.8: at /usr/share/perl5/Alien/Package.pm line 257.
. . . which seems logical as the directory does indeed exist.
What have I done wrong? Or is this one of those rpm packages that can’t be converted to a debian package with alien?
please help me!!! what error is that? what should i do?
phamvananh@ubuntu:~$ sudo alien -d xo.rpm
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
warning: xo.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
Unpacking of ‘xo.rpm’ failed at /usr/share/perl5/Alien/Package/Rpm.pm line 155.
Thank you so much for giving everyone an exceptionally remarkable chance to read from this site. It’s usually very useful plus full of a lot of fun for me and my office mates to search your site the equivalent of three times in a week to read through the latest things you have. And of course, I am always satisfied with the beautiful solutions you serve. Some 4 points on this page are unquestionably the simplest we have all ever had.
Hiya, I’m really glad I have found this information. Nowadays bloggers publish just about gossips and net and this is actually frustrating. A good site with interesting content, that’s what I need. Thank you for keeping this site, I’ll be visiting it. Do you do newsletters? Can’t find it.
Pretty great post. I just stumbled upon your weblog and wished to say that I have truly enjoyed browsing your weblog posts. In any case I’ll be subscribing in your feed and I’m hoping you write again soon!
alient is awesssssssom.. i needed dcraw > 9.0 for ubuntu due to canon 550d .. deb want there and alien converted fedora 16 rpm to deb which works flawless.. where is the donate button 😛
I want to install a deb package in a CentOS system, because it is only available as deb. I read from a program called Alien which can convert formats between rpm, deb, pkg…
To my dismal I Alien itself is only available in … deb
Can you help me to overcome it ?
Juan Valentin – you can get Alien for Centos at
http://minimallinux.blogspot.co.uk/2012/08/centos-6rhel-use-alien.html
Thanks. I will try it