|
@@ -2,9 +2,9 @@
|
|
|
|
|
|
yum_installed=$(yum list installed "$@" 2>&1 | tail -n +2 | grep -v 'Installed Packages' | grep -v 'Red Hat Subscription Management' | grep -v 'Error:' | awk '{ print $2 }' | tr '\n' ' ')
|
|
yum_installed=$(yum list installed "$@" 2>&1 | tail -n +2 | grep -v 'Installed Packages' | grep -v 'Red Hat Subscription Management' | grep -v 'Error:' | awk '{ print $2 }' | tr '\n' ' ')
|
|
|
|
|
|
-yum_available=$(yum list available "$@" 2>&1 | tail -n +2 | grep -v 'Available Packages' | grep -v 'Red Hat Subscription Management' | grep -v 'el7ose' | grep -v 'Error:' | awk '{ print $2 }' | tr '\n' ' ')
|
|
|
|
|
|
+yum_available=$(yum list available -q "$@" 2>&1 | tail -n +2 | grep -v 'Available Packages' | grep -v 'Red Hat Subscription Management' | grep -v 'el7ose' | grep -v 'Error:' | awk '{ print $2 }' | tr '\n' ' ')
|
|
|
|
|
|
|
|
|
|
echo "---"
|
|
echo "---"
|
|
-echo "curr_version: ${yum_installed}"
|
|
|
|
|
|
+echo "curr_version: ${yum_installed}"
|
|
echo "avail_version: ${yum_available}"
|
|
echo "avail_version: ${yum_available}"
|