This commit is contained in:
Nick Brassel
2025-08-07 01:15:57 +10:00
parent b9991cb6b8
commit a369a10ded
2 changed files with 3 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ jobs:
apt-get install -y sudo git passwd
;;
fedora:*|rockylinux:*|almalinux:*)
dnf install -y sudo git passwd findutils epel-release # findutils=xargs, epel-release for hidapi
dnf install -y sudo git passwd findutils # findutils=xargs
;;
archlinux:*)
pacman -Syu --noconfirm

View File

@@ -279,8 +279,9 @@ __EOT__
*fedora*)
echo "It will also install the following system packages using 'dnf':" >&2
print_package_manager_deps_and_delay
# Some RHEL-likes need EPEL for hidapi
$(nsudo) dnf -y install epel-release 2>/dev/null || true
# RHEL-likes have some naming differences in libusb packages, so manually handle those
$(nsudo) dnf -y install epel-release
$(nsudo) dnf -y install $(get_package_manager_deps | tr ' ' '\n' | grep -v 'epel-release' | grep -v libusb | tr '\n' ' ')
for pkg in $(get_package_manager_deps | tr ' ' '\n' | grep libusb); do
$(nsudo) dnf -y install "$pkg" 2>/dev/null || true