diff --git a/check_packages2install-pkgmanager/yum.sh b/check_packages2install-pkgmanager/yum.sh
index c308b76e4b1a80021daf3447f65dde7d18afb0d3..74dbc664d25359899eb9d5c0f2153e6ea2b29f16 100644
--- a/check_packages2install-pkgmanager/yum.sh
+++ b/check_packages2install-pkgmanager/yum.sh
@@ -40,7 +40,7 @@ function yum.getPackageList(){
 # get custom status
 function yum.getStatusLine(){
   typeset -i local _osversion
-  _osversion=$(awk '{ print $4 }' /etc/redhat-release | cut -f 1 -d '.')
+  _osversion=$( ph.getOSMajor )
   if [ $_osversion -ge 8 ]; then
     if ! sudo /usr/bin/yum --security check-update 2>&1 | grep "available" ; then
       echo "rc = $? [Not detected on v$_osversion]"