← 返回命令列表

Linux command

alien 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Example

sudo alien -d [path/to/file]

Example

sudo alien -r [path/to/file]

Example

sudo alien -t [path/to/file]

Example

sudo alien -d -i [path/to/file]

Example

sudo alien -k [path/to/file]

说明

alien is a program that converts between Red Hat rpm, Debian deb, Stampede slp, Slackware tgz, and Solaris pkg file formats. It enables users to convert packages from one Linux distribution format to another and install them.

参数

-d, --to-deb
Create Debian packages (default)
-r, --to-rpm
Create RPM packages
-t, --to-tgz
Create TGZ (Slackware) packages
--to-slp
Create SLP (Stampede) packages
-p, --to-pkg
Create Solaris pkg packages
-i, --install
Install generated packages automatically
-g, --generate
Create temporary directory for manual package building
-k, --keep-version
Don't increment version numbers
-c, --scripts
Convert installation/removal scripts
--fixperms
Sanitize file permissions (Debian only)
-v, --verbose
Display executed commands
-T, --test
Test generated packages with lintian
--bump=_N_
Increment version number by N instead of 1
-h, --help
Display usage summary
--version
Display alien version

FAQ

What is the alien command used for?

alien is a program that converts between Red Hat rpm, Debian deb, Stampede slp, Slackware tgz, and Solaris pkg file formats. It enables users to convert packages from one Linux distribution format to another and install them.

How do I run a basic alien example?

Run `sudo alien -d [path/to/file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --to-deb do in alien?

Create Debian packages (default)