@cryptotaxi247 / netdata-1 / commits / d8e5d998a

Properly handle package check URL creation for RHEL derivatives. (#21431)

* Properly handle package check URL creation for RHEL derivatives. * Further fix issues with specific RHEL derivatives. * Correctly mark centos-stream as supported.

Austin S. Hemmelgarn committed Dec 9, 2025 at 13:17 UTC d8e5d998a8ccf9f3ca4669381d2bc403fc03a7fd
1 file changed +10 -4
packaging/installer/netdata-updater.sh
+10 -4
@@ -1044,7 +1044,7 @@ update_binpkg() {
1044 DISTRO="${ID}"
1045 SYSVERSION="${VERSION_ID}"
1046
1047 - supported_compat_names="debian ubuntu centos fedora opensuse ol amzn"
1047 + supported_compat_names="debian ubuntu centos centos-stream fedora opensuse ol amzn"
1048
1049 if str_in_list "${DISTRO}" "${supported_compat_names}"; then
1050 DISTRO_COMPAT_NAME="${DISTRO}"
@@ -1053,7 +1053,7 @@ update_binpkg() {
1053 opensuse-leap|opensuse-tumbleweed)
1054 DISTRO_COMPAT_NAME="opensuse"
1055 ;;
1056 - cloudlinux|almalinux|centos-stream|rocky|rhel)
1056 + cloudlinux|almalinux|rocky|rhel)
1057 DISTRO_COMPAT_NAME="centos"
1058 ;;
1059 raspbian)
@@ -1092,7 +1092,7 @@ update_binpkg() {
1092 repo_path="${DISTRO_COMPAT_NAME}/${VERSION_CODENAME}"
1093 fi
1094 ;;
1095 - centos|fedora|ol|amzn)
1095 + centos|centos-stream|fedora|ol|amzn)
1096 if [ "${INTERACTIVE}" = "0" ]; then
1097 interactive_opts="-y"
1098 fi
@@ -1110,7 +1110,13 @@ update_binpkg() {
1110 repo_update_opts="${interactive_opts}"
1111 pkg_installed_check="rpm -q"
1112 INSTALL_TYPE="binpkg-rpm"
1113 - repo_path="${DISTRO_COMPAT_NAME}/${SYSVERSION}/$(uname -m)"
1113 + case "${DISTRO_COMPAT_NAME}" in
1114 + amzn) repo_path="amazonlinux/${SYSVERSION}/$(uname -m)" ;;
1115 + centos-stream) repo_path="el/c${SYSVERSION}s/$(uname -m)" ;;
1116 + fedora) repo_path="fedora/${SYSVERSION}/$(uname -m)" ;;
1117 + ol) repo_path="ol/${SYSVERSION}/$(uname -m)" ;;
1118 + *) repo_path="el/$(echo "${SYSVERSION}" | cut -f 1 -d '.')/$(uname -m)" ;;
1119 + esac
1120 ;;
1121 opensuse)
1122 if [ "${INTERACTIVE}" = "0" ]; then