Alien

Aus Foxwiki

alien - Convert or install an alien binary package

Beschreibung

alien ist ein Programm, das zwischen Red Hat rpm, Debian deb, Stampede slp, Slackware tgz, und Solaris pkg Dateiformaten konvertiert. Wenn Sie ein Paket aus einer anderen Linux-Distribution als Linux-Distribution verwenden möchten, können Sie alien verwenden, um es in Ihr bevorzugtes Paketformat zu konvertieren und es zu installieren. Es unterstützt auch LSB-Pakete.

WARNUNG alien sollte nicht verwendet werden, um wichtige Systempakete wie init, libc oder andere Dinge zu ersetzen die für das Funktionieren Ihres Systems unerlässlich sind. Viele dieser Pakete sind in den verschiedenen den verschiedenen Distributionen unterschiedlich eingerichtet, und Pakete aus den verschiedenen Distributionen können nicht austauschbar verwendet werden. Im Allgemeinen gilt: Wenn Sie ein Paket nicht entfernen können, ohne Ihr System zu zerstören, versuchen Sie nicht, es durch eine fremde Version zu ersetzen.

HINWEISE ZUM PAKETFORMAT rpm Für die Konvertierung in und aus dem rpm-Format muss der Red Hat Package Manager installiert sein.

lsb Im Gegensatz zu den anderen Paketformaten kann alien mit den Abhängigkeiten von lsb-Paketen umgehen, wenn das Ziel-Paketformat Abhängigkeiten unterstützt. Beachten Sie, dass dies bedeutet, dass das Paket das aus einem lsb-Paket erzeugt wird, von einem Paket namens "lsb" abhängt -- Ihre Distribution sollte ein Paket mit diesem Namen bereitstellen, wenn es lsb-kompatibel ist. Die Skripte im lsb-Paket werden werden standardmäßig ebenfalls konvertiert.

Um lsb-Pakete zu erzeugen, muss der Red Hat Package Manager installiert sein, und Alien verwendet vorzugsweise ein Programm namens lsb-rpm, wenn es existiert. Es wird nicht garantiert, dass die generierten lsb-Pakete vollständig LSB-konform sind, und es ist eher unwahrscheinlich, dass sie es sind, es sei denn Sie sie in der lsbdev-Umgebung bauen.

Beachten Sie, dass im Gegensatz zu anderen Paketformaten, die Konvertierung eines LSB-Pakets in ein anderes Format nicht seine Minor-Versionsnummer nicht geändert wird.

deb Für die Konvertierung ins (aber nicht vom) deb-Format müssen die Pakete gcc, make, debhelper, dpkg-dev und dpkg Pakete installiert sein.

tgz Beachten Sie, dass Alien bei der Konvertierung aus dem tgz-Format einfach ein Ausgabepaket erzeugt erzeugt, das die gleichen Dateien enthält wie die tgz-Datei. Dies funktioniert nur dann gut, wenn die tgz-Datei vorkompilierte Binärdateien in einem Standard-Linux-Verzeichnisbaum enthält. Führen Sie alien NICHT auf tar Dateien mit Quellcode aus, es sei denn, Sie wollen, dass dieser Quellcode in Ihrem Root-Verzeichnis installiert wird, wenn Sie das Paket installieren! Verzeichnis installiert wird, wenn Sie das Paket installieren!

Wenn Sie alien verwenden, um ein tgz-Paket zu konvertieren, werden alle Dateien in /etc in als Konfigurationsdateien.

pkg Um Packages im Solaris pkg-Format (eigentlich das SV Datastream-Package Format), benötigen Sie die Solaris-Werkzeuge pkginfo und pkgtrans.

Installation

Syntax

alien [--to-deb] [--to-rpm] [--to-tgz] [--to-slp] [options] file [...]

Optionen

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.

file [...] The list of package files to convert.

-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.

-g, --generate Generate a temporary directory suitable for building a package from, but do not actually create the package. This is useful if you want to move files around in the package before building it. The package can be built from this temporary directory by running "debian/rules binary", if you were creating a Debian package, or by running "rpmbuild -bb <packagename>.spec" if you were creating a Red Hat package.

-s, --single Like -g, but do not generate the packagename.orig directory. 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.

--nopatch Do not use any patch files.

--description=desc Specify a description for the package. This only has an effect when converting from the tgz package format, which lacks descriptions.

--version=version Specify a version for the package. This only has an effect when converting from the tgz package format, which may lack version information.

Note that without an argument, this displays the version of alien instead.

-T, --test Test the generated packages. Currently this is only supported for debian packages, which, if lintian is installed, will be tested with lintian and lintian's output displayed.

-k, --keep-version By default, alien adds one to the minor version number of each package it converts. If this option is given, alien will 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 command alien runs 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.

-h, --help Display a short usage summary.

-V, --version Display the version of alien.

EXAMPLES Here are some examples of the use of alien:

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

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

alien -i package.rpm 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 --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.

Parameter

Umgebungsvariablen

alien recognizes the following environment variables:

RPMBUILDOPT Options to pass to rpm when it is building a package.

RPMINSTALLOPT Options to pass to rpm when it is installing a package.

EMAIL If set, alien assumes this is your email address. Email addresses are included in generated debian packages.

Exit-Status

Anwendung

Fehlerbehebung

Konfiguration

Dateien

Anhang

Siehe auch

Dokumentation

Man-Pages
  1. perl v5.38.2
  2. ALIEN(1p)
Info-Pages

Links

Projekt
Weblinks