[CentOS] yum tries to install a mix of architectures

Tue Mar 8 19:23:20 UTC 2011
Nico Kadel-Garcia <nkadel at gmail.com>

On Tue, Mar 8, 2011 at 12:05 PM, Akemi Yagi <amyagi at gmail.com> wrote:
> On Tue, Mar 8, 2011 at 8:54 AM, Johnny Hughes <johnny at centos.org> wrote:
>
>> I would also do this:
>>
>> yum reinstall \*
>>
>> The reason being that sometimes the /usr/share/ items (shared between
>> BOTH packages) get removed when removing multi arch RPMS.
>
> The above lines added to the FAQ:
>
> http://wiki.centos.org/FAQ/General?action=show#head-357346ff0bf7c14b0849c3bcce39677aaca528e9

Take a look at http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Migration_Planning_Guide/ch09s05.html.

The better solution, at least for CentOS 5,  is to add this to /etc/yum.conf

# Disable auto-installation of i386 and x86_64
#multilib_policy=all
multilib_policy=best