'우분투 rpm'에 해당되는 글 2건

  1. 2010.01.29 우분투에서 rpm 패키지 설치 2 2
  2. 2009.08.31 우분투에서 rpm 설치하기 - install rpm package on ubuntu
Linux/Ubuntu2010. 1. 29. 15:26
rpm 을 막상 설치하려니 에러가 발생한다.

morpheuz@ubuntu:/media/iso/host$ rpm -ivh --nodeps --ignorearch stlinux22-host-*.rpm
rpm: please use alien to install rpm packages on Debian, if you are really sure use --force-debian switch. See README.Debian for more details.

Fedora쪽 도움말에는 이러한 옵션이 안나오고, --help 에도 나오지 않는다.
[링크 : http://linux.die.net/man/8/rpm]

Ubuntu에 rpm 설치후 --help를 해보니
$ rpm --help
설치/업그레이드/삭제 옵션:
      --aid                         add suggested packages to transaction
      --allfiles                    특정 파일을 생략하기 위한 설정이 적용된 경우에도, 패키지 안의 모든 파일을
                                    설치합니다
      --allmatches                  <패키지> 이름과 일치하는 패키지는 모두 제거합니다 (<패키지>에 여러개의
                                    패키지를 동시에 지정할 경우에는 오류가 발생합니다)
      --badreloc                    relocate files in non-relocatable package
  -e, --erase=<패키지>+                패키지를 (제거) 삭제합니다
      --excludedocs                 패키지에 포함된 문서 파일을 설치하지 않습니다
      --excludepath=<경로>            <경로>로 시작되는 파일은 설치하지 않습니다
      --fileconflicts               detect file conflicts between packages
      --force                       --replacepkgs 와 --replacefiles 옵션을 동시에 사용합니다
      --force-debian                force installation of rpm on Debian system
아마도, 데비안용으로 추가된듯한 느낌이다.

2009/08/31 - [Linux/Ubuntu] - 우분투에서 rpm 설치하기 - install rpm package on ubuntu
Posted by 구차니
Linux/Ubuntu2009. 8. 31. 13:40
fedora용 패키지라서 그런지 rpm으로 나와있는데, 이녀석들을 설치하려고 하니
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
error: cannot open Packages index using db3 - No such file or directory (2)
error: cannot open Packages database in /var/lib/rpm
이런 에러를 발생시킨다.

일단 rpm을 위한 DB가 존재하지 않아서인데
이를 설치하기 위해서는
$ sudo mkdir /var/lib/rpm
$ sudo rpm --initdb
를 실행하고 나서 하면된다. --initdb 명령의 경우에는, 아무런 출력 메시지가 없었다.



아래와 같은 에러가 발생하면서 설치가 안된다면
error: can't create transaction lock on /var/lib/rpm/__db.000
sudo rpm 으로 실행하면 된다.

[링크 : http://kldp.org/node/53463]



alien 이라는 debian 프로그램은, rpm을 deb로 변환해준다고 한다.

[링크 : http://embraceubuntu.com/2005/09/23/installing-using-an-rpm-file/]

'Linux > Ubuntu' 카테고리의 다른 글

gnome panel에 온도 정보 넣기  (0) 2009.11.02
apt-cache 패키지 검색 하기  (0) 2009.09.01
ubuntu에서 compiz 돌리기  (2) 2009.06.02
우분투에는 iptable 대신 ufw가 있다!  (2) 2009.05.07
ubuntu에 cvs / svn 설치하기  (0) 2009.04.30
Posted by 구차니