View Full Version : override $arch and $basearch of yum

11th April 2006, 06:10 PM
is it possible to override yum to install i386-packages? I want to keep them up to date via yum. (firefox and mplayer) Under Fedora Core 3 I had set up some repos replacing $basearch with i386, but now the online mirrorlists themselves include an $arch in the adress which of course I cant' change due to lack of permission on the servers ;)

Is it possible to somehow tell yum to look into i386-repos as well or do I have to copy the mirrorlists and change the arch manually as the only way?

11th April 2006, 10:38 PM
You can ignore mirrorlist and just create a repo definition with hardcoded URL for i386, e.g. I use this one:

name=Fedora Core $releasever - $basearch


As you can see, I've enabled the updates repo for i386, but disabled the core repo, so I need to append --enablerepo=core-i386 if I need something for i386 from there.
I don't know any way to trick yum to use different arch...

11th April 2006, 10:59 PM
...what I did now was copying the mirrorlist, replacing $arch with i386 and saving as core- and update-i386 and such, enabled=0 and gpgcheck=1. When installing I need to

yum --disablerepo=core,updates --enablerepo=*i386 install <package>.i386

because otherwise yum always tries to get an <package>.i386 or it's dependancies from the x86_64-repos, fails trying and eventually stops with an error.

It's not a very clean solution why I ask if there's an override for yums passed $arch and $basearch. I already tried with arch=i386 x86_64 and basearch=i386 x86_64 in the yum.conf as I found somewhere on the web, but it doesn't do anything. Doesn't even produce an error message :/

Thanks anyway,

11th April 2006, 11:33 PM
Yum Extender allows you to force the i386 arch, install it from extras.

yum install yumex

25th April 2006, 05:13 PM
...oh uhm: Thanks, it worked.