On Thu, Jan 08, 2009 at 11:11:53AM +1100, Amos Shapira wrote: > Hello, > > Is there a standard programmatic way to manipulate yum configuration > files, particularly the .repo files? > > I want to add things like "priority=..." per repo, or > "check_obsoletes=1" to the priorities plugin config. > > I can cook specific search/append using perl or sed but was wondering > whether there is a more elegant way. > > I found Perl's Conf::INI module but it expects comments beginning with > ";", not "#". > Not that I'm aware of, but sounds like an interesting idea. You also might ask on the yum or yum development mailing list. Let us know what you find out! Ray