본문 바로가기

서버 등 운영체제(OS)/Linux

yum update or yum install fails with package conflict between 64 bit and 32 bit package architectures ?

반응형

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • 64 bit architecture
  • 32 bit packages installed sharing some files with the 64 bit ones

Issue

Transaction Check Error:
file /usr/share/man/man1/ca.1ssl.gz from install of openssl-0.9.8e-27.el5_10.3.x86_64 conflicts with file from package openssl-0.9.8e-27.el5_10.1.i686
file /usr/share/man/man1/req.1ssl.gz from install of openssl-0.9.8e-27.el5_10.3.x86_64 conflicts with file from package openssl-0.9.8e-27.el5_10.1.i686
file /usr/share/man/man1/x509.1ssl.gz from install of openssl-0.9.8e-27.el5_10.3.x86_64 conflicts with file from package openssl-0.9.8e-27.el5_10.1.i686

Resolution

You can configure the yum client to update only a package of the exact architecture installed on the system.

Perform the following steps to remove duplicate packages(i.e. 32-bit and 64-bit packages installed on server which is causing the dependency issues).

  1. Install the yum-utils package:

    # yum install yum-utils
    
  2. The package-cleanup --dupes lists all duplicate packages:

    # package-cleanup --dupes        
    
  3. The package-cleanup --cleandupes removes the duplicates (it asks for a confirmation to remove all duplicates unless the -y switch is given):

    # package-cleanup --cleandupes   
    
  4. Edit /etc/yum.conf, set the following line:

    exactarch=1
    
  5. Run yum command:

    # yum clean all
    # yum update
반응형
저작자표시

'서버 등 운영체제(OS) > Linux' 카테고리의 다른 글

CentOS7 MRTG Install  (0) 2016.06.27
Short Tip: Get UUID of Hard Disks [Update]  (0) 2016.06.24
CentOS 저장장치(HDD) 추가 하기  (0) 2016.06.17
Unfinished transactions remaining - yum-complete-transaction  (0) 2016.06.17
[리눅스] 리눅스 tar, gz 압축 및 해제  (0) 2016.04.20