Red Hat Bugzilla – Bug 172080
arch variable in yum.conf is ignored
Last modified: 2014-01-21 17:53:00 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 95)
Description of problem:
I'm prepearing new drive for use in a different machine. The current nachine is a 686 while the target machine is a 586. I copy /etc/fedora-release to the target drive, when I add arch=i586 to the yum.conf file that I pass to yum with -c and do a --installroot= with yum, the resuling list of rpms include i686 varients. ie:
glibc i686 2.3.5-10.3 updates-released4 5.7 M
kernel i686 2.6.13-1.1532_FC4 updates-released4 16 M
openssl i686 0.9.7f-7.10 updates-released4 1.2 M
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Try to change the arch of the yum install.
Actual Results: The arch variable is ignored and the host machine's info is used instead.
Expected Results: If I use arch=i586 in the yum.conf file, then the gcc, kernel, et all, should be 586 or less.
where did you get the idea that you can define the arch variable?
$arch This will be replaced with your architecture as listed by
os.uname() in Python.
Or did I miss read that?
Found a workaround, on the 686 machine I created the file /etc/rpm/platform,
and added "i586-redhat-linux" to it. I then get packages based on i586. Just
have to remember to rename it when I'm done.
it will be replaced when you use it in strings like baseurl.
you can't SET it.