summaryrefslogtreecommitdiffstats
path: root/redhat/build/install_rpm_package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/build/install_rpm_package.sh')
-rwxr-xr-xredhat/build/install_rpm_package.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/redhat/build/install_rpm_package.sh b/redhat/build/install_rpm_package.sh
index 93e2b5036..5deece1bd 100755
--- a/redhat/build/install_rpm_package.sh
+++ b/redhat/build/install_rpm_package.sh
@@ -10,6 +10,8 @@ PKGNAME="${1}"
if [ -x /usr/sbin/urpmi ]; then
PKGINST='sudo urpmi --auto --no-verify-rpm'
+elif [ -x /usr/bin/dnf ]; then
+ PKGINST="sudo dnf install -y --refresh --nogpgcheck"
elif [ -x /usr/bin/zypper ]; then
PKGINST="sudo zypper install -y"
elif [ -x /usr/bin/yum ]; then