[Yum] [PATCH] Making Yum scriptable

Simon Perreault nomis80 at lqt.ca
Fri Aug 5 14:36:05 UTC 2005


Hello,

Here is my patch for making Yum's output parseable by scripts, thus increasing 
its scriptability and reusability, and general goodness. I have pretty much 
given up hope that Mr. Vidal would include it in his Yum tree. I am sending 
it here so that other people may find it useful, suggest improvements or ways 
of not reinventing the wheel.

This patch adds a --script flag to the yum command. That flag's name was 
inspired by konsole's own, which enables supplementary DCOP functions in 
Konsole, increasing its scriptability. Yum's --script flag affects the list 
command only. The output is tab-delimited, making it easy to parse by 
sort(1), any shell script, a Perl (gasp!) program, or even, God have mercy on 
our souls, be imported in Excel.

I've included two versions, for patching Yum 2.2 or 2.3. We use them for 
patching FC4 and RHEL4 yum RPMs. We'd much rather have the patch be accepted 
upstream than have to ship patched RPMs to our clients, but at least open 
source gives us that power. *sigh*

Comments?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-2.2.1-script.patch
Type: text/x-diff
Size: 2161 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum/attachments/20050805/d363b594/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-2.3.2-script.patch
Type: text/x-diff
Size: 2140 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum/attachments/20050805/d363b594/attachment-0003.bin 


More information about the Yum mailing list