RHEL4
List Available Updates
up2date --dry-run | sed -n '/solving RPM inter-dependencies/,/The following Packages were marked to be skipped by your configuration/p' | sed -n '/^$/,/^$/p' | sed -n 4~1p | sed '/^$/d' | awk '{print $1 " " $2 "-" $3 "-" $4}'
RHEL5
List Available Updates
yum -d 0 check-update | awk '{print $1 " " $2}'