Yum $releasever $basearch

John Austin ja at jaa.org.uk
Tue May 24 12:15:07 UTC 2005


On Mon, 2005-05-23 at 21:54 +0100, Paul Howarth wrote:
> On Mon, 2005-05-23 at 12:38 -0700, MJang wrote:
> > Folks, 
> > 
> > Just wondering where the $releasever and $basearch variables are set
> > (these variables are found in the files in the /etc/yum.repos.d
> > directory. 
> > 
> > I understand what they are, that $releasever is the release version
> > (i.e. 3 or 4 for Fedora Core 3 or 4), and $basearch is the architecture
> > such as i386 or x86_64, but just can't figure out where these variables
> > are set.
> 
> Yum just expands these strings to the appropriate values as and when it
> encounters them.
> 
> It derives the $releasever value from the version number of the package
> configured as "distroverpkg" (actually, whatever "provides" that in RPM
> parlance) in /etc/yum.conf, and $basearch from a call to the operating
> system's uname(2) function.
> 
> Paul.
> -- 
> Paul Howarth <paul at city-fan.org>
> 
Hi,
Along the same lines:
Is it therefore impossible to force yum to use different
release and basearch without editing the .repro files ?

Eg On an x86-64 FC install
Remove firefox-64 as the plugins aren't there and install firefox-i386
using yum (and hence jre-i386 with plugins)
Doing this by hand seems painful !!

Is there a better way ?
John




More information about the fedora-list mailing list