'alien'에 해당되는 글 1건

  1. 2012.05.23 RPM <-> DEB 변환 프로그램 "alien"
OS/Linux2012. 5. 23. 11:34

Date :

2012.05.23


Category :
OS - Linux - Tip


Note :
레드헷 계열에서 사용하는 RPM 과 데비안 계열에서 사용하는 DEB  파일을 상호 변환 시켜주는 프로그램.


 




Document :

HomePage

http://joeyh.name/code/alien/

 

 

install

[root@thinkpad Downloads]# tar xvzf alien_8.87.tar.gz

[root@thinkpad Downloads]# cd alien
[root@thinkpad alien]# ls -l
합계 132
drwxr-xr-x. 3 root root  4096  4월  6 02:36 Alien
-rw-r--r--. 1 root root 17976  7월  8  2011 GPL
-rw-r--r--. 1 root root   283  7월  8  2011 INSTALL
-rw-r--r--. 1 root root   393  5월 23 11:23 MYMETA.yml
-rw-r--r--. 1 root root 25326  5월 23 11:23 Makefile
-rwxr-xr-x. 1 root root   923  7월  8  2011 Makefile.PL
-rw-r--r--. 1 root root  2719  7월  8  2011 README
-rw-r--r--. 1 root root   448  7월  8  2011 TODO
-rw-r--r--. 1 root root 16281  5월 23 11:24 alien
-rw-r--r--. 1 root root   576  5월 23 11:24 alien.lsm
-rw-r--r--. 1 root root   586  7월  8  2011 alien.lsm.in
-rwxr-xr-x. 1 root root 16379  7월  8  2011 alien.pl
-rw-r--r--. 1 root root   897  5월 23 11:24 alien.spec
-rw-r--r--. 1 root root   917  7월  8  2011 alien.spec.in
drwxr-xr-x. 8 root root  4096  5월 23 11:24 blib
drwxr-xr-x. 2 root root  4096  4월  6 02:53 debian
-rw-r--r--. 1 root root   739  7월  8  2011 gendiff.txt
-rw-r--r--. 1 root root     0  5월 23 11:24 pm_to_blib

[root@thinkpad alien]# cat INSTALL
To try alien before installing, just run ./alien.pl from this directory. Most
features will work prior to installation.

To install alien, become root and type:
 perl Makefile.PL; make; make install

To use alien, you'll need a variety of other software. See the README for
details.
[root@thinkpad alien]# perl Makefile.PL

[root@thinkpad alien]# make

[root@thinkpad alien]# make install

[root@thinkpad alien]# which alien
/usr/local/bin/alien

 

 

*

perl Makefile.PL 에서 아래와 같은 error가 발생할 경우 대처 방법

 

Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.

 

# yum install perl-ExtUtils-MakeMaker

 

 

사용방법

# alien -d abc.rpm

-> rpm을 deb로 변경

 

# alien -r abc.deb

-> deb를 rpm으로 변경

 

# alien -i abc.rpm

-> 데비안에서 rpm을 install

 

[root@thinkpad alien]# alien --help
Usage: alien [options] file [...]
  file [...]                Package file or files to convert.
  -d, --to-deb              Generate a Debian deb package (default).
     Enables these options:
       --patch=<patch>      Specify patch file to use instead of automatically
                            looking for patch in /var/lib/alien.
       --nopatch     Do not use patches.
       --anypatch           Use even old version os patches.
       -s, --single         Like --generate, but do not create .orig
                            directory.
       --fixperms           Munge/fix permissions and owners.
       --test               Test generated packages with lintian.
  -r, --to-rpm              Generate a Red Hat rpm package.
      --to-slp              Generate a Stampede slp package.
  -l, --to-lsb              Generate a LSB package.
  -t, --to-tgz              Generate a Slackware tgz package.
     Enables these options:
       --description=<desc> Specify package description.
       --version=<version>  Specify package version.
  -p, --to-pkg              Generate a Solaris pkg package.
  -i, --install             Install generated package.
  -g, --generate            Generate build tree, but do not build package.
  -c, --scripts             Include scripts in package.
  -v, --verbose             Display each command alien runs.
      --veryverbose         Be verbose, and also display output of run commands.
  -k, --keep-version        Do not change version of generated package.
      --bump=number         Increment package version by this number.
  -h, --help                Display this help message.
  -V, --version      Display alien's version number.

 

 

 

Posted by JINSAN CHOI