Hey Mark,

one quick and dirty possibility:

a=`yum check-updates | awk '{ print $2 }' |grep -v ":" |grep -v mirror |wc
-l` ; echo $(($a - 1))


Best regards

Steffen
_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

Reply via email to