On Fri, 2005-08-05 at 10:36 -0400, Simon Perreault wrote: > 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* why not do what Panu recommended and look to see if repoquery can do this for you. -sv