• Login
  • Settings
  • Help/Guide
  • About Trac
  • Register
  • Wiki
  • Timeline
  • Roadmap
  • Search

Wiki Navigation

  • Start Page
  • Index by Title
  • Index by Date
  • Last Change

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
  10. List all the available packages
  11. List all the installed packages
  12. Get the arch information that yum knows about
  13. Get the system release information
  14. Get the running kernel package information

Download in other formats:

  • Plain Text

Trac Powered

Powered by Trac 0.10.5
By Edgewall Software.

Hosting provided by OSUOSL