Version 6 (modified by james, 10 years ago)
move snippets from code snippets page to their own pages

Yum Code Snippets

This is just snippets of code using the yum modules for common/simple tasks. Add/edit/comment as you'd like. All of these snippets assume that you have done "import yum, os, sys".

  1. Open a local package
  2. Return the gpg signature info from a package
  3. Get the naming data from an rpm filename
  4. Find owner of a file
  5. Simplest transaction you can have
  6. Setup a repo at an arbitrary location
  7. Verify an installed package
  8. A simple version of the "yum list" command
  9. A simple version of the "yum search" command

more?