Changes from Version 1 of YumCodeSnippet/ListAllPkgs

Show
Ignore:
Author:
james (IP: 65.172.155.230)
Timestamp:
02/02/09 15:55:42 (9 years ago)
Comment:

create list all available snippet

Legend:

Unmodified
Added
Removed
Modified
  • YumCodeSnippet/ListAllPkgs

    v0 v1  
     1 
     2{{{ 
     3#!python 
     4 
     5yb = yum.YumBase() 
     6yb.conf.cache = 1 
     7for pkg in sorted(yb.pkgSack.returnPackages()): 
     8    print pkg, pkg.repo 
     9}}}