linux poison RSS
linux poison Email

How to convert between packages (deb, rpm, tgz) using alien on Linux

alien is a program that converts between Redhat rpm, Debian deb, Stampede slp, Slackware tgz, and Solaris pkg file formats. If you want to use a package from another linux distribution than the one you have installed on your system, you can use alien to convert it to your preferred package format and install it. It also supports LSB packages

Warning:
Alien should not be used to replace important system packages, like init, libc, or other things that are essential for the functioning of your system. Many of these packages are set up differently by the different distributions, and packages from the different distributions cannot be used interchangeably. In general, if you can't remove a package without breaking your system, don't try to replace it with an alien version.

Installation:
Ubuntu user can install alien using following command: apt-get install alien
OpenSuSe user can install alien using "1-click" installer - here
Fedora user can install alien using command: yum install alien

Examples
Convert the package.rpm into a package.deb
alien --to-deb package.rpm

Convert the package.deb into a package.rpm
alien --to-rpm package.deb

Convert the package.rpm into a package.deb (converting to a .deb package is default, so you need not specify --to-deb), and install the generated package.
alien -i package.rpm

alien --to-deb --to-rpm --to-tgz --to-slp foo.deb bar.rpm baz.tgz
Creates 9 new packages. When it is done, foo bar and baz are available in all 4 package formats.


3 comments:

Anonymous said...

i can't seem to install alien using "yum install alien". yum says it can't find the package.

Anonymous said...

Same for me on Linux Mint 14 after entering:
"Sudo alien -d -i .tar.gz" or
"Sudo alien -d -i .rpm".

Can alien be used for packages downloaded through a browser to something like the downloads folder or does it need to exist in a specific file/medium?

Anonymous said...

Works great on Linux mint mate, converting was no problem, transferred to another machine using cinnamon, installed no problem but where'd it go, not in menu?

Post a Comment

Related Posts with Thumbnails