PDA

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



Lox2Eagle
11th April 2006, 06:10 PM
Hi,
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?

pawel.stolowski
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:

[core-i386]
name=Fedora Core $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/i386/os/
enabled=0

[core-i386-upd]
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/i386
enabled=1

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...

Lox2Eagle
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,
Loxi

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

yum install yumex

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

Loxi