Skip to content

Instantly share code, notes, and snippets.

@dcolish
Created March 8, 2013 16:27
Show Gist options
  • Save dcolish/5117697 to your computer and use it in GitHub Desktop.
Save dcolish/5117697 to your computer and use it in GitHub Desktop.
import yum
_yum = yum.YumBase()
all_repos = _yum.repos.findRepos('*')
repos = {}
for _repo in all_repos:
repos[_repo.name] = dict(_repo.cfg.items(_repo._section))
print repos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment