Date Category Linux

Below python oneliner will show you YUM variables typically defined in /etc/yum.conf and used by YUM/RPM. Very cool.

$ python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'

Output:

Loaded plugins: langpacks, update-motd
{'arch': 'ia32e',
'awsdomain': 'amazonaws.com',
'awsregion': 'us-west-2',
'basearch': 'x86_64',
'pointrelease': 'latest',
'product': 'core',
'releasever': '2017.12',
'uuid': 'XXXXXX-XXXX-XXXX-XXXX-XXXXXXX'}

The above YUM variables are further described at this Red Hat Knowledge Base article.


Comments

comments powered by Disqus