[Yum] $rleassever $basearch from where?

Frank Murphy frankly3d at gmail.com
Tue May 14 15:15:45 UTC 2013


On Tue, 14 May 2013 10:59:52 -0400 (EDT)
Zdenek Pavlas <zpavlas at redhat.com> wrote:


> $ python -c 'import yum; yb=yum.YumBase(); print yb.conf.yumvar'
> {'releasever': '17', 'basearch': 'i386', 'arch': 'i686', 'uuid':
> '9e7e68e1-ab25-418e-93ef-1537ad3554ec'}
> 
> yumvar dict is used automatically when parsing *.conf files,
> so it's probably easiest to just define def_local_repo_dir
> there as /var/cache/yum/$releasever/$basearch/...
> 
> You can also use yb.conf.cachedir + '/_local/packages'
> 
Thank you for that,
the last line does look easiest.

-- 
Regards,
Frank - I check for new mail app. 20min
www.frankly3d.com


More information about the Yum mailing list