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".
- Open a local package
- Return the gpg signature info from a package
- Get the naming data from an rpm filename
- Find owner of a file
- Simplest transaction you can have
- Setup a repo at an arbitrary location
- Verify an installed package
- A simple version of the "yum list" command
- A simple version of the "yum search" command
- List all the available packages
- List all the installed packages
- Get the arch information that yum knows about
- Get the system release information
- Get the running kernel package information