강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

rpm실무15편: RPM업그레이드시 다른 패키지의 파일과 충돌문제 해결방법

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

rpm실무15: RPM업그레이드시 다른 패키지의 파일과 충돌문제 해결방법

 

 

 

 

패키지 업그레이드나 설치에서 문제되는 경우는 앞의 예에서 봤던 바와같이 중복설치문제도 있지만 설치하고자하는 패키지의 파일이 이미 설치되어있는 다른 패키지의 파일과 충돌(conflict)이 발생하는 경우도 있다.

 

 

 

 

 이런 패키지 충돌(conflict)이 발생하는 경우에 이를 무시하고 설치해야 한다면 --replacefiles옵션을 사용하면 된다.

 

 

 

 

 

 

아래의 예는 openssl-0.9.8패키지를 -Uvh옵션으로 업그레이드 설치를 한 것이다.

 

 

 

 

 보는 바와같이 패키지 파일 충돌(conflict)이 발생하였다.

 

 

 

 

 

 

[root@sulinux Packages]# rpm -Uvh openssl-0.9.8g-11.fc10.i686.rpm

warning: openssl-0.9.8g-11.fc10.i686.rpm: Header V3 DSA signature: NOKEY, key ID 4ebfc273

Preparing...                ########################################### [100%]

        package openssl-0.9.8g-11.fc10.i686 is already installed

        file /lib/libcrypto.so.0.9.8g from install of openssl-0.9.8g-11.fc10.i686 conflicts with file from package openssl-0.9.8g-11.fc10.i386

        file /lib/libssl.so.0.9.8g from install of openssl-0.9.8g-11.fc10.i686 conflicts with file from package openssl-0.9.8g-11.fc10.i386

        file /usr/bin/openssl from install of openssl-0.9.8g-11.fc10.i686 conflicts with file from package openssl-0.9.8g-11.fc10.i386

        file /usr/lib/openssl/engines/lib4758cca.so from install of openssl-0.9.8g-11.fc10.i686 conflicts with file from package openssl-0.9.8g-11.fc10.i386

        file /usr/lib/openssl/engines/libaep.so from install of openssl-0.9.8g-11.fc10.i686 conflicts with file from package openssl-0.9.8g-11.fc10.i386

        file /usr/lib/openssl/engines/libatalla.so from install of openssl-0.9.8g-11.fc10.i686 conflicts with file from package openssl-0.9.8g-11.fc10.i386

        file /usr/lib/openssl/engines/libchil.so from install of openssl-0.9.8g-11.fc10.i686 conflicts with file from package openssl-0.9.8g-11.fc10.i386

        file /usr/lib/openssl/engines/libcswift.so from install of openssl-0.9.8g-11.fc10.i686 conflicts with file from package openssl-0.9.8g-11.fc10.i386

        file /usr/lib/openssl/engines/libnuron.so from install of openssl-0.9.8g-11.fc10.i686 conflicts with file from package openssl-0.9.8g-11.fc10.i386

        file /usr/lib/openssl/engines/libsureware.so from install of openssl-0.9.8g-11.fc10.i686 conflicts with file from package openssl-0.9.8g-11.fc10.i386

        file /usr/lib/openssl/engines/libubsec.so from install of openssl-0.9.8g-11.fc10.i686 conflicts with file from package openssl-0.9.8g-11.fc10.i386

[root@sulinux Packages]#

 

 

 

 

 

이런 경우에 패키지의 파일에 충돌이 발생하더라도 굳이 업그레이드하려면 다음 예와같이 --replacefiles옵션을 사용하면 된다.

 

 

 

 

 

 

[root@sulinux Packages]# rpm -Uvh --replacefiles openssl-0.9.8g-11.fc10.i686.rpm

warning: openssl-0.9.8g-11.fc10.i686.rpm: Header V3 DSA signature: NOKEY, key ID 4ebfc273

Preparing...                ########################################### [100%]

   1:openssl                ########################################### [100%]

[root@sulinux Packages]#

 

 

 

 

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,035 명
  • 현재 강좌수 :  35,791 개
  • 현재 접속자 :  78 명