Skip to content

Instantly share code, notes, and snippets.

@catichenor
Last active January 17, 2017 21:39
Show Gist options
  • Save catichenor/78e43af9a72d8b87e49dcecac4bbd82d to your computer and use it in GitHub Desktop.
Save catichenor/78e43af9a72d8b87e49dcecac4bbd82d to your computer and use it in GitHub Desktop.
Write out pretty/long group names in a package group from yum
#!/bin/sh
# I would hope there's a more elegant way of doing this directly in yum/DNF, but I couldn't find one.
yum group info "Development and Creative Workstation" | grep "\+" | sed 's/ +\+//g' | xargs yum group info | grep "Group:" | sed 's/.*Group: //g' > prettyGroupNames.txt
# Replace "Development and Creative Workstation" with your package group of choice.
# Untested in DNF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment