Bug 172080 - arch variable in yum.conf is ignored
arch variable in yum.conf is ignored
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Depends On:
  Show dependency treegraph
Reported: 2005-10-30 18:14 EST by Jerry Vonau
Modified: 2014-01-21 17:53 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-10-30 18:17:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jerry Vonau 2005-10-30 18:14:30 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):

How reproducible:

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.

Additional info:
Comment 1 Seth Vidal 2005-10-30 18:17:09 EST
where did you get the idea that you can define the arch variable?

Comment 2 Jerry Vonau 2005-10-30 19:59:16 EST
man yum.conf:
 $arch  This will be  replaced  with  your  architecture  as  listed  by
              os.uname()[4] in Python.                                         
Comment 3 Jerry Vonau 2005-10-30 20:01:00 EST
Or did I miss read that?
Comment 4 Jerry Vonau 2005-10-30 20:24:40 EST
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.
Comment 5 Seth Vidal 2005-10-30 20:31:35 EST
it will be replaced when you use it in strings like baseurl.

you can't SET it.

Note You need to log in before you can comment on or make changes to this bug.