[CentOS] how to find out the number of updates for a system

Steffen Kröger

steffen.kroeger at ongoingmedia.de
Wed May 22 14:32:59 UTC 2019


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



More information about the CentOS mailing list