Current Path : /opt/microsoft/omsconfig/Scripts/ |
Current File : //opt/microsoft/omsconfig/Scripts/OMSYumUpdates.sh |
#!/bin/bash if [ "$1" = "" ]; then yum check-update | awk '{print $1}' exit ${PIPESTATUS[0]} else if [ -e "/usr/bin/repoquery" ]; then repoquery --queryformat "Name : %{NAME}\nArch : %{ARCH}\nVersion : %{EPOCH}:%{VERSION}\nRelease : %{RELEASE}\nRepo : %{REPO}\nBuildtime : %{BUILDTIME}" $* else yum info available $* fi fi