ALIEN(1)
π ALIEN(1) π
okay so bestie, welcome to the User Contributed Perl Documentation section of the manual β this is alien(1) and she is that girl π
β¨ NAME β¨
alien β convert or install an alien binary package πΈ
πΈ SYNOPSIS πΈ
alien [--to-deb] [--to-rpm] [--to-tgz] [--to-slp] [options] file [...]
π¦ DESCRIPTION π¦
so alien is a program that converts between Red Hat rpm, Debian deb, Stampede slp, Slackware tgz, and Solaris pkg file formats. no cap, that's the whole gig π
if you want to use a package from a different linux distribution than the one installed on your system, you can use alien to convert it to your preferred package format and then 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. like, seriously, do not π
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. periodt.
π PACKAGE FORMAT NOTES π
β rpm
for converting to and from rpm format, the Red Hat Package Manager must be installed. that's the entry fee, bestie π
π§ lsb
unlike the other package formats, alien can handle the dependencies of lsb packages if the destination package format supports dependencies. note that this means the package generated from an lsb package will depend on a package named "lsb" β your distribution should provide a package by that name, if it is lsb compliant. the scripts in the lsb package will be converted by default as well π«Ά
to generate lsb packages, the Red Hat Package Manager must be installed, and alien will use by preference a program named lsb-rpm, if it exists. no guarantees are made that the generated lsb packages will be fully LSB compliant, and it's rather unlikely they will unless you build them in the lsbdev environment π
note that unlike other package formats, converting an LSB package to another format will not cause its minor version number to be changed.
π deb
for converting to (but not from) deb format, the gcc, make, debhelper, dpkg-dev, and dpkg packages must be installed. yeah, it's a whole squad π
π tgz
note that when converting from the tgz format, alien will simply generate an output package that has the same files in it as are in the tgz file. this only works well if the tgz file has precompiled binaries in it in a standard linux directory tree. do NOT run alien on tar files with source code in them, unless you want this source code to be installed in your root directory when you install the package! π like, that's giving chaos.
when using alien to convert a tgz package, all files in /etc are assumed to be configuration files.
πΈ pkg
to manipulate packages in the Solaris pkg format (which is really the SV datastream package format), you will need the Solaris pkginfo and pkgtrans tools.
β¨ OPTIONS β¨
alien will convert all the files you pass into it into all the output types you specify. if no output type is specified, it defaults to converting to deb format. iconic default behavior, honestly π
file [...]β the list of package files to convert. all of them. every single one π«Ά-d,--to-debβ make debian packages. this is the default β¨-r,--to-rpmβ make rpm packages.-t,--to-tgzβ make tgz packages.--to-slpβ make slp packages.-p,--to-pkgβ make Solaris pkg packages.-i,--installβ automatically install each generated package, and remove the package file after it has been installed. clean up after yourself, love that π-g,--generateβ generate a temporary directory suitable for building a package from, but do not actually create the package. super useful if you want to move files around in the package before building it. the package can be built from this temporary directory by runningdebian/rules binary, if you were creating a Debian package, or by runningrpmbuild -bb <packagename>.specif you were creating a Red Hat package.-s,--singleβ like-g, but do not generate thepackagename.origdirectory. this is only useful when you are very low on disk space and are generating a debian package.-c,--scriptsβ try to convert the scripts that are meant to be run when the package is installed and removed. use this with caution, because these scripts might be designed to work on a system unlike your own, and could cause problems. it is recommended that you examine the scripts by hand and check to see what they do before using this option π
this is enabled by default when converting from lsb packages.
--patch=patch β specify the patch to be used instead of automatically looking the patch up in/var/lib/alien. this has no effect unless a debian package is being built.--anypatchβ be less strict about which patch file is used, perhaps attempting to use a patch file for an older version of the package. this is not guaranteed to always work; older patches may not necessarily work with newer packages. lowkey risky, proceed with vibes π¦--nopatchβ do not use any patch files.--description=desc β specify a description for the package. this only has an effect when converting from thetgzpackage format, which lacks descriptions.--version=version β specify a version for the package. this only has an effect when converting from thetgzpackage format, which may lack version information.
note that without an argument, this displays the version of alien instead. plot twist π
-T,--testβ test the generated packages. currently this is only supported for debian packages, which, iflintianis installed, will be tested withlintianandlintian's output displayed.-k,--keep-versionβ by default,alienadds one to the minor version number of each package it converts. if this option is given,alienwill not do this.--bump=number β instead of incrementing the version number of the converted package by 1, increment it by the given number.--fixpermsβ sanitize all file owners and permissions when building a deb. this may be useful if the original package is a mess. on the other hand, it may break some things to mess with their permissions and owners to the degree this does, so it defaults to off. this can only be used when converting to debian packages.--target=architecture β force the architecture of the generated package to the given string.-v,--verboseβ be verbose: display each commandalienruns in the process of converting a package π--veryverboseβ be verbose as with--verbose, but also display the output of each command run. some commands may generate a lot of output. you've been warned, bestie π-h,--helpβ display a short usage summary.-V,--versionβ display the version ofalien.
π EXAMPLES π
here are some examples of the use of alien, because reading docs is one thing and seeing it is another π
alien --to-deb package.rpmβ convert thepackage.rpminto apackage.debalien --to-rpm package.debβ convert thepackage.debinto apackage.rpmalien -i package.rpmβ convert thepackage.rpminto apackage.deb(converting to a.debpackage is default, so you need not specify--to-deb), and install the generated package.alien --to-deb --to-rpm --to-tgz --to-slp foo.deb bar.rpm baz.tgzβ creates 9 new packages. when it is done,foo,barandbazare available in all 4 package formats. she ate π₯
π§ ENVIRONMENT π§
alien recognizes the following environment variables:
RPMBUILDOPTβ options to pass torpmwhen it is building a package.RPMINSTALLOPTβ options to pass torpmwhen it is installing a package.EMAILβ if set,alienassumes this is your email address. email addresses are included in generated debian packages. yes, she WILL be putting your email in there π§β¨
π AUTHOR π
alien was written by Christoph Lameter, <clameter@debian.org>.
deb to rpm conversion code was taken from the martian program by Randolph Chung, <tausq@debian.org>.
the Solaris pkg code was written by Mark A. Hershberger <mah@everybody.org>.
alien has been extensively rewritten (3 times) and is now maintained by Joey Hess, <joeyh@debian.org>. three whole glow-ups, main character energy fr fr π
π COPYRIGHT π
alien may be copied and modified under the terms of the GNU General Public License. slay, open source π«Ά
and that's the tea, bestie β this page is from perl v5.42.2, dated 2025-11-19, and it was genuinely a pleasure π β¨ go convert something iconic π¦
π¦ where this page comes from
- alpine 3.24: alien-doc 8.95.6-r0 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms