Is there an easy way to determine where a specific yum group is sourced?
I can query what groups are available using yum grouplist
.
I can query group information using yum group info $yum_group_name
What's troubling me is I can't determine which repository a group is being sourced from.
The best I've done is find what repositories hold the group:
yum_group_name="....." # or ID
# find all repository identifiers
# perform yum commands with only 1 repository enabled
cat /etc/yum.repos.d/* | grep '\[.*\]' | grep -v '#' | tr -d '[]' | xargs -I {} -t sh -c "yum --disablerepo='*' --enablerepo='{}' group info $yum_group_name 2>&1 | grep 'Group:'"
# subsequently, associate a bareurl to repository identifier
Say a group exists in multiple repositories, how do I know which one is used?
Not sure if there is an option to print group list and the corresponding source repository. Using
-v
option withgroupinfo
lists the source repository for packages from the given group.or
I think groups a defined in the metadata of the "base" repo. At least that's what I see in CentOS. They aren't "in" any repo like a package is; rather they're part of the structure of the repo. Here's the only place I see them defined in the CentOS-* repos.
I see another *comps.xml in ELREPO's repodata dir. I think maybe its groups are merged with ones existing in Centos-base and if there aren't existing groups yet, we'll see new groups available.
So, the effect would be that the "base" group gets a few more packages when elrepo is enabled. And there are few new groups.