Add dnf package manager support in Rally install script

Newest RHEL based Linux distributions uses dnf
package manager as default.

Change-Id: I3cc4d15c69501ba5da1ce775f96fde3968423155
This commit is contained in:
Alexandr Nevenchannyy 2016-05-12 19:16:22 +03:00
parent cde375e9a4
commit e07c63c0ac

View File

@ -310,8 +310,17 @@ install_required_sw () {
else
pkg_manager="apt-get install"
fi
elif have_command dnf; then
# dnf based RHEL/CentOS/Fedora
missing=$(which_missing_packages gcc libffi-devel python-devel openssl-devel gmp-devel libxml2-devel libxslt-devel postgresql-devel redhat-rpm-config git wget)
if [ "$ASKCONFIRMATION" -eq 0 ]; then
pkg_manager="dnf install -y"
else
pkg_manager="dnf install"
fi
elif have_command yum; then
# RHEL/CentOS
# yum based RHEL/CentOS/Fedora
missing=$(which_missing_packages gcc libffi-devel python-devel openssl-devel gmp-devel libxml2-devel libxslt-devel postgresql-devel redhat-rpm-config git wget)
if [ "$ASKCONFIRMATION" -eq 0 ]; then