Changes between Version 2 and Version 3 of 5MinuteExamples

Show
Ignore:
Author:
skvidal (IP: 24.211.246.61)
Timestamp:
11/14/08 18:08:56 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 5MinuteExamples

    v2 v3  
    11= Programming with Yum in 5 minutes, or so = 
    22 
    3 There are a lot of lines of code in yum, and it can be somewhat intimidating at first glace. However a significant amount of effort has been made to make simple things easy, and the hard things not so hard. The start of any code using yum, will almost certainly have these four lines (and always the first and last one :). 
     3There are a lot of lines of code in yum, and it can be somewhat intimidating at first glace. However a significant amount of effort has been made to make simple things easy, and the hard things not so hard. The start of any code using yum, will almost certainly have these three lines (and always the first and last one :). 
    44{{{ 
    5     #! /usr/bin/python -tt 
    6       
     5     
    76    import os 
    87    import sys 
    110109}}} 
    111110 
    112 Hopefully that will go some way to giving you an overview of how you can use the yum API to perform queries or tasks that would otherwise be very difficult. For further information you can use the help feature of ipython to look at docstrings for the variuos components, and even use the TAB complete feature of ipython to see all the available attributes of packages, repos, pkgSack or the YumBase itself. 
     111Hopefully that will go some way to giving you an overview of how you can use the yum API to perform queries or tasks that would otherwise be very difficult. For further information you can use the help feature of ipython to look at docstrings for the variuos components, and even use the TAB complete feature of ipython to see all the available attributes of packages, repos, pkgSack or the !YumBase itself.