How do you ensure yum repositories have groups defined ?
by Shaggy1 from LinuxQuestions.org on (#5EHMF)
----------------------------
System Information
Code:$ cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)$uname -a
Code:Linux lb-cam-bca-12 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux----------------------------
I have a setup where I install centos 7 via pxeboot using a kickstart file that specifies packages to install in the packages section in the standard way, as below:
Code:%packages --multilib
@ Additional Development
@ Anaconda Tools
....
a2ps.x86_64
abrt-gui-libs.i686
....
%endHowever if, once the system has installed, I want to install additional groups I cannot because yum does not seem to know about groups:
Code:$ yum grouplist
There is no installed groups file.The searches I have made suggest that this is because the yum repositories do not have groups defined.
My searches suggest that groups are specified in a group file, that the group file is specified as an xml file (for my centos 7 system I can see one in the ios as ./repodata/aced7d22b338fdf7c0a71ffcf32614e058f4422c42476d1f4b9e9364d567702f-c7-x86_64-comps.xml) and that the 'createrepo' command can be used to generate something (a groups repo?) that species the groups - like this:
Code:$ createrepo -g <xxx>comps.xml .When I do this using the xml file I got from the iso, it generates a 'repodata' directory with some files in under the directory I run the command from. However:
Code:$ yum groupliststill reports:
Code:There is no installed groups file.I guess the generated repodata directory needs to be put somewhere specific - could someone tell me where it needs to be generated ?
More generally could someone explain how the groups work ?
By doing the above what exactly am I generating ?
Is this groups information relating to a specific repository ? If so do I need to create a separate one for each repo I install ? and which repo does the iso xml file group info relate to ?
Does anyone know how I can update my kickstart file to include group information in the install ?


System Information
Code:$ cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)$uname -a
Code:Linux lb-cam-bca-12 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux----------------------------
I have a setup where I install centos 7 via pxeboot using a kickstart file that specifies packages to install in the packages section in the standard way, as below:
Code:%packages --multilib
@ Additional Development
@ Anaconda Tools
....
a2ps.x86_64
abrt-gui-libs.i686
....
%endHowever if, once the system has installed, I want to install additional groups I cannot because yum does not seem to know about groups:
Code:$ yum grouplist
There is no installed groups file.The searches I have made suggest that this is because the yum repositories do not have groups defined.
My searches suggest that groups are specified in a group file, that the group file is specified as an xml file (for my centos 7 system I can see one in the ios as ./repodata/aced7d22b338fdf7c0a71ffcf32614e058f4422c42476d1f4b9e9364d567702f-c7-x86_64-comps.xml) and that the 'createrepo' command can be used to generate something (a groups repo?) that species the groups - like this:
Code:$ createrepo -g <xxx>comps.xml .When I do this using the xml file I got from the iso, it generates a 'repodata' directory with some files in under the directory I run the command from. However:
Code:$ yum groupliststill reports:
Code:There is no installed groups file.I guess the generated repodata directory needs to be put somewhere specific - could someone tell me where it needs to be generated ?
More generally could someone explain how the groups work ?
By doing the above what exactly am I generating ?
Is this groups information relating to a specific repository ? If so do I need to create a separate one for each repo I install ? and which repo does the iso xml file group info relate to ?
Does anyone know how I can update my kickstart file to include group information in the install ?