How to define a group which will appears in dnf grouplist?

Hello,

I wanted to define a new group which will appears in dnf grouplist results.
Are there any documentation on how to do this ?
Can we do this in a COPR repository ?

Best regards,

Yann

2 Likes

These are done using the comps files:

https://fedoraproject.org/wiki/How_to_use_and_edit_comps.xml_for_package_groups

You can use “meta packages”. They’re empty packages that don’t contain any files but include Requires: .. to pull in lots of other packages.

Edited: see @msuchy 's answer below on how comps are to be added for COPR repos

3 Likes

Thanks a lot for this answer. I will certainly focus on the meta package solution. It looks easier to manage.

Comps can be added to the Copr project. Though it is not too visible (because it is rarely used).
Got to settings of your Copr project. Navigate to the section of your enabled chroots. And click on the Edit button beside the chroot. And there is an option to upload comps.xml file. You need to do that for each chroot. That is because comps per distribution are usually different.

2 Likes

Thanks. I will try this ASAP.

I found this page which details the comps.xml structure.
https://fedoraproject.org/wiki/How_to_use_and_edit_comps.xml_for_package_groups