From 93ba3d87969acc49a20eb0d09a45602d4eef856d Mon Sep 17 00:00:00 2001 From: TheElectronWill Date: Thu, 1 Feb 2018 23:26:03 +0100 Subject: [PATCH] Support yum (for CentOS in particular) This should solve issue #7. --- common-functions.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common-functions.sh b/common-functions.sh index 0ea94f0..298aba5 100644 --- a/common-functions.sh +++ b/common-functions.sh @@ -5,9 +5,13 @@ # Initializes $installer and $distrib if hash dnf 2>/dev/null; then - # Fedora, CentOS + # Fedora, CentOS with dnf installed installer="dnf install --allowerasing" distrib="redhat" +elif hash yum 2>/dev/null; then + # CentOS + installer="yum install" + distrib="redhat" elif hash zypper 2>/dev/null; then # OpenSUSE installer="zypper install"