{ "created": "2015-12-20T19:56:47Z", "hierarchy": [ { "name": "ROOT", "type": "folder", "uri": "/ROOT" }, { "name": "Yum Variables", "type": "article", "uri": "Yum_Variables" } ], "html": "\n\n \n \n \n \n \n \n \n \n \n \n \n Yum Variables\n \n \n \n \n
\n
\n \n
\n
\n \n \n\n

Yum Variables\n \n

\n

Listing

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

Creating

\n

E.g. $osname

\n
echo "Scientific Linux" > /etc/yum/vars/osname\n
\n\n\n
\n \n
\n \n \n \n \n \n\n", "id": "ae17fb5c-cdca-5fc8-aa16-b5e11aa2d74e", "modified": "2022-11-01T20:05:42Z", "revisions": [ { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2022-11-01T20:05:42Z", "id": "c9576f57d8ed0e54976c459c7930661b7775afdb", "shortId": "c9576f57", "subject": "Update link, Monterey note", "content": "Listing\n-------\n\n python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'\n\nCreating\n--------\n\nE.g. `$osname`\n\n echo \"Scientific Linux\" > /etc/yum/vars/osname\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2015-12-27T07:27:56Z", "id": "5a5b1a32f41081d062ab86f8869a961bcad79668", "shortId": "5a5b1a32", "subject": "Fix Markdown conversion\n\nSaw half a season of The Office\n", "content": "Listing\n-------\n\n python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'\n\nCreating\n--------\n\nE.g. `$osname`\n\n echo \"Scientific Linux\" > /etc/yum/vars/osname\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2015-12-21T02:30:47Z", "id": "3f2c54b1d767218fcb4855fbac306b015afaf551", "shortId": "3f2c54b1", "subject": "Incremental\n", "content": "### Listing\n\n` python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'`\n\n### Creating\n\nE.g. `$osname`\n\n` echo \"Scientific Linux\" > /etc/yum/vars/osname`\n\n\n\n" }, { "authorEmail": "mail@nikhil.io", "authorName": "Nikhil Anand", "date": "2015-12-20T19:56:47Z", "id": "9bfd2c44c1ff75de68c1c1a2e0f5de3ea12e8b27", "shortId": "9bfd2c44", "subject": "Yum Variables : First Draft", "content": "### Listing\n\n` python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'`\n\n### Creating\n\nE.g. `$osname`\n\n` echo \"Scientific Linux\" > /etc/yum/vars/osname`\n\n[Category:Nikhil's Notes](Category:Nikhil's_Notes \"wikilink\")\n[Category:From a past sysadmin\nlife](Category:From_a_past_sysadmin_life \"wikilink\")\n" } ], "sizeInBytes": 212, "source": "Listing\n-------\n\n python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.yumvar, width=1)'\n\nCreating\n--------\n\nE.g. `$osname`\n\n echo \"Scientific Linux\" > /etc/yum/vars/osname\n", "title": "Yum Variables", "untracked": false, "uri": "/Yum_Variables" }