Red Hat Bugzilla – Bug 490560
RFE: Change grouplist output (show group ids as well)
Last modified: 2014-01-21 18:08:46 EST
Description of problem:
I need yum to list the groupids in a yum grouplist first and perhaps include the expanded name within brackets. While the expanded names are nice for the graphical package managers and Anaconda, the groupid is much much easier to type in the command line and should be listed first.
I generally do something like the following to install a group
# yum install @kde-desktop
The group id is listed in comps.xml and is not otherwise visible at all.For some other groups, the expanded name is much difficult to type directly (a mix of captial, mixed case words with spaces in between) and almost impossible to remember offhand and users have to resort to yum grouplist, copy and paste the name as a argument to yum groupinstall.
I'm not sure we want this in grouplist, but we did add it to verbose groupinfo so:
yum groupinfo -v '*' | fgrep Group-Id
I think it doesn't make sense to give preference to the group name over the group id in the command line. group id is far more easier in most cases. Yum grouplist shows things like "SUGAR Desktop Environment" and casing and spaces is important and has to be covered within quotes while it is much easier to remember or type @sugar-desktop.
Adding -v to grouplist will show this now.
Can you get it list the ids by default instead of adding another option to do it? Btw the man page still claims -v is only for debugging output. Perhaps you can mention that -v is a option for grouplist to list the ids as well if you are not doing it by default.