Red Hat Bugzilla – Bug 568488
yum-plugin-auto-update-debug-info should not affect 'install'
Last modified: 2014-01-21 18:13:57 EST
I love this plug-in for keeping my installed debuginfo packages up to date.
But, I also want to be able to use 'yum install foobar*' and get all the foobar packages without getting foobar-debuginfo. So, to match its name, the plugin should apply on 'yum update' and 'yum upgrade', but not in 'yum install'. Conversely, some hack that enabled the repos but excluded the debuginfo repos from being used for wildcard expansion would also work.
All what the plugins does is to enable the '*-debuginfo' repos for the active repositories.
It is a TYPE_CORE plugin so it is active for all consumers of the yum api, not just yum-cli.
So there is no way to limit it to 'yum update'.
you can disable the plugin so it don't run every time and use the '--enableplugin=auto-update-debuginfo' to enable it when you want it.
(hint : you can use the yum-plugin-aliases to create an alias for --enableplugin=auto-update-debuginfo, if you dont wan't to type so much )
The plugin is misnamed if that's all it's ever going to do. Rename it to yum-auto-debuginfo or something, or else implement it in whatever way makes it actually do what it says it does.
So the problem is that the way the plugin works is that it looks to see if you have any debuginfo packages installed already, and _if you do_ it then enables the debuginfo repos. ... so that updates work. The name reflects that, and people's desire that "I've installed debuginfos and I want them to automatically update".
Yes, after you've installed at least one debuginfo rpm, you can then install more debuginfos but that's kind of an edge case. It's also fair to say that I _very rarely_ see people use "yum install 'foo*'" commands.