Yum Variables Revision as of Monday, 21 December 2015 at 02:30 UTC
Listing
python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'
Creating
E.g. $osname
echo "Scientific Linux" > /etc/yum/vars/osname
python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'
E.g. $osname
echo "Scientific Linux" > /etc/yum/vars/osname