From fc15887f848eab5bfbee1f3f0255b81689b73abf Mon Sep 17 00:00:00 2001 From: thiell Date: Thu, 3 Nov 2016 21:43:55 -0700 Subject: [PATCH] postscripts: add --showduplicates to yum list (#2056) "yum list" alone does NOT check the older packages available in the yum repo. If we want to install a specific package version, the --showduplicates option is required. As an example, with this patch, we can now add a specific kernel package to otherpkgs.pkglist that is older that the one available in the distro. --- xCAT/postscripts/otherpkgs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index 27c934d8d..b54c5e23f 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -715,7 +715,7 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do fi if [ $hasyum -eq 1 ]; then #use yum - result=`yum list $fn 2>&1` + result=`yum --showduplicates list $fn 2>&1` if [ $? -eq 0 ]; then rc=0 array_set_element repo_path $index $path