[Yum] yum list all its variables

James Antill james-yum at and.org
Fri Jun 1 16:06:33 UTC 2012


Orion Poplawski <orion at cora.nwra.com> writes:

> On 05/31/2012 08:58 AM, James Antill wrote:
>> Mihamina Rakotomandimby<mihamina at rktmb.org>  writes:
>>
>>> Hi all,
>>>
>>> Is there a yum command to make it lists all its variables?
>>> For example:
>>>
>>> $ yum list-variables
>>>   * $releasever: 5.8
>>>   * $basearch: i386
>>>   * ...
>>
>>   The only thing that's close is the "yum version" command which will
>> show the $relasever and $basearch.
>>
>>   What do you need this for?
>>   It might be worth adding to repoquery or yumdb, if there's a good
>> usecase.
>>
>
> I've thought it would be useful for determining the actual urls for things like:
>
> mirrorlist=http://linux.dell.com/repo/hardware/latest/mirrors.cgi?osname=f$releasever&basearch=$basearch&native=1&dellsysidpluginver=$dellsysidpluginver
>
> I.e. printing out $dellsysidpluginver

 Right, so you don't really want to know the variables (and have to
mentally work out the url) you want to know the url ... and you can
see those with:

 yum repolist -v

-- 
James Antill -- james at and.org


More information about the Yum mailing list