[Yum-devel] Re: [RFE] Having one single file for all plugins' configurations
robin-lists at robinbowes.com
Wed Jun 4 09:56:42 UTC 2008
Kulbir Saini wrote:
> Since we now have more than 20 plugins for yum and more are popping up, it
> would be a good idea to have a single configuration file for all the
> plugins with a format similar to that of .repo files.
> 1. Say, I have 20 plugins installed and enabled. Now, I want to disable
> 10 of them randomly. I have to open 10 files one by one and do
> enabled=0. That seems a lot of work and also looks quite frustrating. I
> think keeping everything in a single file will make things easier :)
No, you need to learn to use scripting :)
With a separate config file for each plugin, one can do something like this:
plugins='foo bar foo1 bar2'
for p in $plugins; do
perl -pie 's/^enabled.*/enabled=0/' $confdir/$p.conf
That becomes much harder with one file containing separate sections.
More information about the Yum-devel