This question already has an answer here:
I run a 64-bit version of CentOS5. At the moment, when I run Yum updates or installs, unless Yum is purged of i386 packages prior, it will install i386 packages when x86_64 are available.
Is it possible for Yum to install x86_64 packages as first preference and then if no 64-bit packages are available, install i386 packages instead?
I know that I can set preferences so that only 64-bit packages are installed, but I don't want to do this, as it prevents 32-bit packages from being installed if they're the only option.