[root@10-10-136-125 ~]# for i in {el4,el5,el6,fc9,fc6,fc12,fc16,fc17,fc18,fc20}; do echo "${i}, `rpm -qa | grep \.${i} | wc -l` packages" ; done el4, 0 packages el5, 0 packages el6, 297 packages fc9, 0 packages fc6, 0 packages fc12, 0 packages fc16, 0 packages fc17, 0 packages fc18, 0 packages fc20, 0 packages [root@hadoop-01 namesecondary]# for i in {i686,noarch,x86_64}; do echo "${i}, `rpm -qa | grep \.${i} | wc -l` packages" ; done i686, 4 packages noarch, 90 packages x86_64, 493 packages