Tuesday, August 27, 2013

Centos installing both i386 and x86_64 rpms

Sponsored Links
If you are running rhel/centos x86_64 systems,you can see redhat/centos has installed both i386 and x86_64 rpms. It will create a lot of dependency problems, conflicts etc.

in case if you are installing httpd you may end up in glibc duplicate errors.

rpm -qa | grep glibc
glibc-devel-2.5-65.el5_7.1
glibc-devel-2.5-65.el5_7.1
!--more-->
To view the architecture of installed files add the following line to ~/.rpmmacros
#vi ~/.rpmmacros
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
Save the file.

Now when querying
# rpm -qa | grep glibc
glibc-devel-2.5-65.el5_7.1.x86_64
glibc-devel-2.5-65.el5_7.1.i386


You can solve this problem by adding the following lines to /etc/yum.conf
exactarch=1
exclude=*.i386 *.i586 *.i686

Also remove all the duplicate files as follows.
yum remove glibc-devel-2.5-65.el5_7.1.i386
Sponsored Links

No comments:

Post a Comment

Be nice. That's all.