From aa1ba12a24ca102c1fd9eefddf5371d1dce259b3 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 10 Nov 2017 20:03:25 +0800 Subject: [PATCH] install-deps.sh: always use yum-config-manager for consistency Signed-off-by: Kefu Chai (cherry picked from commit eccc961c728153c928baa4478e9c8d5a1139a834) --- install-deps.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install-deps.sh b/install-deps.sh index 31bc47f1dab..49638b8e72c 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -169,8 +169,7 @@ else $SUDO yum install -y yum-utils MAJOR_VERSION=$(lsb_release -rs | cut -f1 -d.) if test $(lsb_release -si) = RedHatEnterpriseServer ; then - $SUDO yum install subscription-manager - $SUDO subscription-manager repos --enable=rhel-$MAJOR_VERSION-server-optional-rpms + $SUDO yum-config-manager --enable rhel-$MAJOR_VERSION-server-optional-rpms fi $SUDO yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/$MAJOR_VERSION/x86_64/ $SUDO yum install --nogpgcheck -y epel-release -- 2.47.3