Re: Scriptable way to edit yum .repo files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux