Pulling packages related to a group in comps.xml
From WBITT's Cooker!
Core:
[root@lnxlan215 cdimages]# grep -A 65 "<id>core</id>" comps.xml-5.6-i386-nolang | grep packagereq | grep -v "optional" | cut -d ">" -f 2 | cut -d "<" -f 1 | tr '\n' ' ' SysVinit authconfig basesystem bash centos-release coreutils cpio dhclient \ dhcpv6-client e2fsprogs ed elilo redhat-logos centos-release-notes \ ecryptfs-utils file filesystem glibc gnu-efi grub hdparm initscripts \ iproute iprutils iputils kbd kudzu libgcc libtermcap libhugetlbfs \ mkinitrd openssh-clients openssh-server passwd policycoreutils \ ppc64-utils prelink procps readline rootfiles rpm \ s390utils selinux-policy-targeted setools setserial setup shadow-utils \ sysfsutils sysklogd termcap udftools util-linux vim-minimal yaboot yum
Base:
grep -A 175 "<id>base</id>" comps.xml-5.6-i386-nolang | grep packagereq | grep -v "optional" | cut -d ">" -f 2 | cut -d "<" -f 1 | tr '\n' ' ' NetworkManager acl acpid amtu anacron apmd conman cpuspeed aspell aspell-en at attr \ authconfig autofs bc bind-utils bluez-utils bzip2 ccid coolkey crash crontabs \ cryptsetup-luks cyrus-sasl-plain dmraid dos2unix dosfstools dump eject elsa \ fbset finger firstboot-tui ftp gnupg gpm ibmasm ipsec-tools iptstate irda-utils \ irqbalance jwhois krb5-workstation ksh lftp libaio longrun logrotate logwatch lsof \ m2crypto mailcap man man-pages mcelog mdadm mgetty microcode_ctl mkbootdisk mtools \ mtr nano nc nfs-utils nss_db nss_ldap ntsysv numactl oddjob pam_ccreds pam_krb5 \ pam_passwdqc pam_pkcs11 pam_smb parted pax pciutils pcmciautils pkinit-nss mlocate \ pinfo pm-utils prctl psacct quota rdate rdist readahead redhat-lsb rhel-instnum rhn-check \ rhn-setup rng-utils rp-pppoe rsh rsync sendmail setarch setuptool tree smartmontools \ sos specspo stunnel sudo symlinks sysreport system-config-network-tui \ system-config-securitylevel-tui talk tcp_wrappers tcpdump tcsh telnet time tmpwatch \ traceroute unix2dos unzip usbutils libutempter vconfig vixie-cron wget which \ wireless-tools words ypbind yum-rhn-plugin yum-updatesd zip