Version 1 (modified by james, 9 years ago)
create list all available snippet
yb = yum.YumBase()
yb.conf.cache = 1
for pkg in sorted(yb.pkgSack.returnPackages()):
    print pkg, pkg.repo