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 구차니
Linux2009. 11. 4. 17:07
rpm2cpio [packagename.version.arch.rpm] | cpio -t
rpm -qlvp [packagename.version.arch.rpm]

[링크 : http://kldp.org/node/40043]
[링크 : http://kldp.org/node/29027]

[링크 : http://linux.die.net/man/1/cpio]
[링크 : http://linux.die.net/man/8/rpm2cpio]




일단 rpm이 출력은 더욱 빠르고, rpm2cpio | cpio -t  방법은 조금느린 느낌이 든다.

'Linux' 카테고리의 다른 글

UVC - USB Video Class  (0) 2009.11.17
tree  (0) 2009.11.16
mount() 이용하기 - mount cifs using mount()  (2) 2009.10.22
execl()로 mount 실행하기 - samba  (2) 2009.10.14
gnash - GNU SWF player  (0) 2009.09.23
Posted by 구차니
회사일2009. 1. 23. 17:57
STLinux 개발 환경 날려 먹어서 다시 까는데 install 스크립트가 이상하게 작동하는 바람에
rpm으로 수작업 설치 하게 되었다.

일단 특정 폴더 아래의 모든 rpm을 설치하는게 목적이라면 아래의 옵션을 사용하면 된다.
 rpm -Ivh --nodeps *.rpm

여기서 몰랐던 사실은 rpm은 architecture를 확인하고 해당 패키지만 설치를 한다는 것이다.
즉, cross compile 환경에서 target용 실행파일들이 rpm으로 되어 있다면, arch를 무시하고 설치를 해야 한다.
 rpm -Ivh --ignorearch *.rpm


man rpm 발췌

--ignorearch
              Allow installation or upgrading even if the architectures of the  binary  package  and host don’t match.
--nodeps
              Don’t do a dependency check before installing or upgrading a package.

'회사일' 카테고리의 다른 글

DVB bit stream을 잊고 있었다 -ㅁ-!  (0) 2009.04.22
AC8 넌 모하는 넘이야? 욕스럽게시리 ㄱ-  (2) 2009.04.08
DVB-SI string emphasis control - 0x86, 0x87  (2) 2009.03.30
C0 and C1 control codes  (0) 2009.03.17
ramdisk vs tmpfs  (6) 2009.02.20
Posted by 구차니