Changes from Version 1 of YumCodeSnippet/FindFileOwner

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

move from code snippets page

Legend:

Unmodified
Added
Removed
Modified
  • YumCodeSnippet/FindFileOwner

    v0 v1  
     1Search for which package(s) own a file on the system 
     2{{{ 
     3#!python 
     4my = yum.YumBase() 
     5pkgs = my.rpmdb.whatProvides('/boot/vmlinuz-2.6.23.9-85.fc8', None, (None, None,None)) 
     6for pkg in pkgs: 
     7    print pkg 
     8}}}