Add allowerasing flag to dnf install

Fixes issues with conflicting packages that may occur on some systems.

Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
This commit is contained in:
Han Verstraete (OpenFaaS Ltd)
2025-05-20 14:37:39 +02:00
committed by Alex Ellis
parent 6f0ac37e3c
commit e98c949019

View File

@ -38,7 +38,7 @@ install_required_packages() {
apt-get update -yq
apt-get install -yq curl runc bridge-utils iptables iptables-persistent
elif $(has_dnf); then
dnf install -y curl runc iptables-services bridge-utils which
dnf install -y --allowerasing curl runc iptables-services bridge-utils which
elif $(has_pacman); then
pacman -Syy
pacman -Sy curl runc bridge-utils