To list the package groups available in yum, you would use yum grouplist. When you are adding groups to your kickstart file, you use the id of the group not the name, so this *very* simple script lists the groups with their ids.
import yum
yb = yum.YumBase()
for grp in yb.comps.groups:
	print "%s (%s)" % (,grp.groupid)
This is posted in my howto also

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

About the Author...