diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index 14352c420..df8d504d1 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -393,7 +393,7 @@ hasdpkg=0 supdatecommand="rpm -Uvh --replacepkgs" sremovecommand="rpm -ev" -result=`rpm --version` +result=`rpm --version 2>/dev/null` if [ $? -eq 0 ]; then hasrpm=1 result=`rpm -q yum`