Python controlling Packagekit


/ Published in: Python
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.