Posted By

espresso on 03/24/11


Tagged

linux packagekit


Versions (?)

Python controlling Packagekit


 / Published in: Python
 

  1. create a packagekit instance
  2. search for the blender package
  3. show the complete name and the package summary (needs python-packagekit package)
  1. import packagekit.client
  2.  
  3. pk = packagekit.client.PackageKitClient()
  4. #search for packet with name "blender"
  5. erg = pk.search_name('blender')
  6. print erg[0].name
  7. print erg[0].summary

Report this snippet  

You need to login to post a comment.