Software Groups
rpm -qa --queryformat "%{group}\n" | sort | uniq -c
RPM software packages include meta information about the package, like the group it belongs to.
The group is typically a two level catagory split by a slash, '/', character, though exceptions exist.
40 groups with 2064
packages.