Scriptable way to edit yum .repo files?

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



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 "#".

Thanks,

--Amos
_______________________________________________
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