介紹
alien 是一個 deb 包 與 rpm 包之間的轉換工具來
安裝
apt-get install alien
- -r, --to-rpm
- -d, --to-deb (default)
- -t, --to-tgz
- -T, --test (debian packages only)
- -v, --verbose
Check version:
alien -V
alien version 8.87
Example:
alien Lib_Utils-1.00-09.noarch.rpm
Warning: Skipping conversion of scripts in package Lib_Utils: postinst postrm preinst Warning: Use the --scripts parameter to include the scripts. lib-utils_1.00-10_all.deb generated
!!! 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.
更好的做法:
fakeroot alien iozone-3-398.i386.rpm
原因:
runs a command in an environment wherein it appears to have root privileges
fakeroot works by replacing the file manipulation library functions (chmod(2), stat(2) etc.)