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:
parent
cde375e9a4
commit
e07c63c0ac
|
@ -310,8 +310,17 @@ install_required_sw () {
|
||||||
else
|
else
|
||||||
pkg_manager="apt-get install"
|
pkg_manager="apt-get install"
|
||||||
fi
|
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
|
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)
|
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
|
if [ "$ASKCONFIRMATION" -eq 0 ]; then
|
||||||
|
|
Loading…
Reference in New Issue