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
OS/Linux2011. 11. 1. 10:15

Date :

2011.11.1


Category :
OS - Linux - Tip

Note :
CentOS 설치시 지역설정 및 언어설정을 "한국, 한글" 로 하게 되면 유저의 홈디렉토리명이 한글로 자동 생성 됩니다.
시스템 관리자 입장에선 디렉토리 이동간에 "한글"로된 파일, 디렉토리명은 여간 번거로운게 아니기에
아래와 같은 방법으로 수정 할 수 있습니다.




Document :
#1

[ggomsu@localhost ~]$
[ggomsu@localhost ~]$ id
uid=501(ggomsu) gid=501(ggomsu) groups=501(ggomsu) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[ggomsu@localhost ~]$ pwd
/home/ggomsu
[ggomsu@localhost ~]$ ls
공개  다운로드  문서  바탕화면  비디오  사진  음악  템플릿


[ggomsu@localhost ~]$ ls -a
.              .bash_logout   .config    .gconfd  .gstreamer-0.10  .local     .pulse-cookie     공개      비디오
..             .bash_profile  .dbus      .gnome2  .gtk-bookmarks   .mozilla   .ssh              다운로드  사진
.ICEauthority  .bashrc        .esd_auth  .gnote   .gvfs            .nautilus  .viminfo          문서      음악
.bash_history  .cache         .gconf     .gnupg   .imsettings.log  .pulse     .xsession-errors  바탕화면  템플릿


[ggomsu@localhost ~]$ cd .config/
[ggomsu@localhost .config]$ ls
gnome-disk-utility  gnome-session  ibus  user-dirs.dirs  user-dirs.locale


[ggomsu@localhost .config]$ cat user-dirs.dirs
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.

XDG_DESKTOP_DIR="$HOME/바탕화면"
XDG_DOWNLOAD_DIR="$HOME/다운로드"
XDG_TEMPLATES_DIR="$HOME/템플릿"
XDG_PUBLICSHARE_DIR="$HOME/공개"
XDG_DOCUMENTS_DIR="$HOME/문서"
XDG_MUSIC_DIR="$HOME/음악"
XDG_PICTURES_DIR="$HOME/사진"
XDG_VIDEOS_DIR="$HOME/비디오"


[ggomsu@localhost .config]$ vi user-dirs.dirs
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"


[ggomsu@localhost ~]$ pwd
/home/ggomsu
[ggomsu@localhost ~]$ ls
공개  다운로드  문서  바탕화면  비디오  사진  음악  템플릿


[ggomsu@localhost ~]$ mv 공개 Public
[ggomsu@localhost ~]$ mv 다운로드 Downloads
[ggomsu@localhost ~]$ mv 문서 Documents
[ggomsu@localhost ~]$ mv 바탕화면 Desktop
[ggomsu@localhost ~]$ mv 비디오 Videos
[ggomsu@localhost ~]$ mv 사진 Pictures
[ggomsu@localhost ~]$ mv 음악 Music
[ggomsu@localhost ~]$ mv 템플릿 Templates
[ggomsu@localhost ~]$ ls
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos


Posted by JINSAN CHOI