[Yum] Re: Desired bahaviour of $releasever when using --installroot

seth vidal skvidal at fedoraproject.org
Thu Aug 30 13:21:15 UTC 2007


On Thu, 2007-08-30 at 15:19 +0200, Alexander Todorov wrote:
> Rex Dieter wrote:
> > Alexander Todorov wrote:
> > 
> >> I am using the --installroot option and noticed something strange.
> >> The baseurl in my .repo file contains both $releasever and $basearch.
> >> When using with --installroot $releasever is translated to "Null" not
> > 
> > Does your installroot already include the 'redhat-release' pkg (or whatever
> > is referenced as distroverpkg in your yum.conf)? 
> 
> No, it's an empty directory.
> So distroverpkg is the requirement for that to work properly?
> 

yes - that's where yum gets that variable from.

you need a package which provides whatever distroverpkg is set to in
your yum.conf.

it defaults to redhat-release b/c redhat-release is provided by:
fedora-release, centos-release, etc, etc

-sv





More information about the Yum mailing list