Make centos5 64bit yum install only x86_64 packages

Linux specific questions/information are gathered here. The main thrust of topics are applied to Centos/RedHat(RH)/Debian/Ubuntu/Gentoo distributives

Make centos5 64bit yum install only x86_64 packages

Postby lik » Fri Aug 24, 2012 2:07 pm

Everytime you install or update packages with yum on Centos5/RHEL5, it tries to install both x86_64 and i386 versions of the package if both are available.
This problem arise only on Centos5 because yum defaults to:
Code: Select all
multilib_policy=all

what means install all available architectures of package. For example, if you are running 64bit system, yum will first try to install package.x86_64, if it`s not available yum will fall back to i386 and noarch.
This was changed in Centos6 to default to:
Code: Select all
multilib_policy=best

what means install the best packages for my architecture. On x86_64 system means 64bit package will be installed unless the package is only available in 32bit/noarch format.
Thus, we need to re-define 'multilib_policy' default value via /etc/yum.conf on Centos5:
Code: Select all
multilib_policy=best

Further we can remove odd 32bit packages if they are not required.
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Linux specific

 


  • Related topics
    Replies
    Views
    Last post
cron