build: replace yum with dnf

dnf has replaced yum on Fedora and CentOS. On modern versions of Fedora,
you have to install an extra package to get the old name working, so
avoid that inconvenience and use dnf directly.

Closes #181
This commit is contained in:
Avi Kivity 2021-11-12 22:59:48 +02:00 committed by Nadav Har'El
parent d6225c5231
commit 26a6919714

View File

@ -22,5 +22,5 @@
if [ "$ID" = "ubuntu" ] || [ "$ID" = "debian" ]; then
apt -y install maven openjdk-8-jdk-headless
elif [ "$ID" = "fedora" ] || [ "$ID" = "centos" ]; then
yum install -y maven java-1.8.0-openjdk-devel
dnf install -y maven java-1.8.0-openjdk-devel
fi