Return to Snippet

Revision: 43483
at March 24, 2011 23:12 by espresso


Initial Code
import packagekit.client

pk = packagekit.client.PackageKitClient()
#search for packet with name "blender"
erg = pk.search_name('blender')
print erg[0].name
print erg[0].summary

Initial URL

                                

Initial Description
1. create a packagekit instance
2. search for the blender package
3. show the complete name and the package summary
(needs python-packagekit package)

Initial Title
Python controlling Packagekit

Initial Tags
linux

Initial Language
Python