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)'


Loaded plugins: langpacks, update-motd
{'arch': 'ia32e',
'awsdomain': '',
'awsregion': 'us-west-2',
'basearch': 'x86_64',
'pointrelease': 'latest',
'product': 'core',
'releasever': '2017.12',

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


comments powered by Disqus