I'm using fedora 22 and dnf-1.1.2-4.fc22.noarch
As an use-case scenario: I found that strace package is not installed. I want to figure out if this package belongs to any other group, to install software that I'll probably will need too for similar tasks.
I found this brute-force way(grepping for 3 spaces bacause group names start with this indent):
dnf grouplist | grep ' ' | while read line; do dnf groupinfo "$line"; done
Then redirect this output to a file, search for a package name, and find a group name there.
Best Answer
Since Fedora 26, the following works:
See the bug report where this feature was implemented.