diff options
Diffstat (limited to 'redhat/build/install_rpm_package.sh')
-rwxr-xr-x | redhat/build/install_rpm_package.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/redhat/build/install_rpm_package.sh b/redhat/build/install_rpm_package.sh index 93e2b5036..6b1319f90 100755 --- a/redhat/build/install_rpm_package.sh +++ b/redhat/build/install_rpm_package.sh @@ -8,7 +8,9 @@ done PKGNAME="${1}" -if [ -x /usr/sbin/urpmi ]; then +if [ -x /usr/bin/dnf ]; then + PKGINST="sudo dnf install -y --refresh" +elif [ -x /usr/sbin/urpmi ]; then PKGINST='sudo urpmi --auto --no-verify-rpm' elif [ -x /usr/bin/zypper ]; then PKGINST="sudo zypper install -y" |