Skip to content

Instantly share code, notes, and snippets.

@sumandeng
Last active December 18, 2018 08:30
Show Gist options
  • Select an option

  • Save sumandeng/ad7da5b6f1397f82727d3827c4c3195e to your computer and use it in GitHub Desktop.

Select an option

Save sumandeng/ad7da5b6f1397f82727d3827c4c3195e to your computer and use it in GitHub Desktop.
用yum安装、查看程序组
# yum-list-available-environment-groups.sh
yum grouplist | sed '/^Installed Groups:/,$d;/^Available Environment Groups:/,$!d;/^Available Environment Groups:/d;s/^[[:space:]]*//'
# yum-list-available-groups.sh
yum grouplist | sed '/^Available Groups:/,$!d;/^Available Groups:/d;/^Done/d;s/^[[:space:]]*//'
# yum-list-installed-groups.sh
yum grouplist | sed '/^Installed Groups:/,$!d;/^Available Groups:/,$d;/^Installed Groups:/d;s/^[[:space:]]*//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment