long-wanted feature added to yum
January 30, 2008
I checked in a long-wanted feature into yum yesterday. It was only able to happen b/c of the some groundwork done earlier this month in the install() method in YumBase but now it was easy-ish to do.
A lot of people have complained about this over the years multilib has existed:
yum install foo
if you do this and foo.i386 and foo.x86_64 exist then yum will try to install both of them.
With yum 3.2.11 and forward you can set: multilib_policy=best in your yum.conf file. If you do that then it will install the ‘best’ arch for your platform and only that one, if it is available.
so: yum install foo on x86_64 will only install foo.x86_64, unless foo.x86_64 doesn’t exist and then it will fall back to whatever foo is available.
If you set multilib_policy=all, which is the default, then yum follows the behavior it has always followed, install all of them it can.
This doesn’t impact people not using biarch-capable systems, but I thought I’d mention it as I’m sure there are a number of people who will be pleased to see this.