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.
This commit is contained in:
Avi Kivity 2021-11-12 22:59:48 +02:00
parent d6225c5231
commit 22d71c5c1c
1 changed files with 1 additions and 1 deletions

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