Fix RHEL / CentOS 8.x dependencies for Judy-devel and others (#8202)
James Mills committed
Mar 5, 2020 at 02:12 UTC
72d35831769517383865bebdba35c8dbad0fc301
1 file changed
+10
-5
packaging/installer/install-required-packages.sh
+10
-5
@@ -417,7 +417,7 @@ detect_package_manager_from_distribution() {
417
fi
418
;;
419
420
- clear-linux* | clearlinux* )
420
+ clear-linux* | clearlinux*)
421
package_installer="install_swupd"
422
tree="clearlinux"
423
if [ "${IGNORE_INSTALLED}" -eq 0 ] && [ -z "${swupd}" ]; then
@@ -1337,12 +1337,16 @@ validate_tree_centos() {
1337
fi
1338
fi
1339
1340
- echo >&2 " > Checking for getpagespeed-extras ..."
1341
- if ! run yum ${sudo} repolist | grep 'getpagespeed-extras'; then
1342
- if prompt "PowerTools not found, shall I install it?"; then
1343
- run ${sudo} yum ${opts} install https://extras.getpagespeed.com/release-el8-latest.rpm
1340
+ echo >&2 " > Checking for Okay ..."
1341
+ if ! rpm -qa | grep okay > /dev/null; then
1342
+ if prompt "okay not found, shall I install it?"; then
1343
+ run ${sudo} yum ${opts} install http://repo.okay.com.mx/centos/8/x86_64/release/okay-release-1-3.el8.noarch.rpm
1344
fi
1345
fi
1346
+
1347
+ echo >&2 " > Installing Judy-devel directly ..."
1348
+ run ${sudo} yum ${opts} install http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/Judy-devel-1.0.5-18.module_el8.1.0+217+4d875839.x86_64.rpm
1349
+
1350
elif [[ "${version}" =~ ^6\..*$ ]]; then
1351
echo >&2 " > Detected CentOS 6.x ..."
1352
echo >&2 " > Checking for Okay ..."
@@ -1351,6 +1355,7 @@ validate_tree_centos() {
1355
run ${sudo} yum ${opts} install http://repo.okay.com.mx/centos/6/x86_64/release/okay-release-1-3.el6.noarch.rpm
1356
fi
1357
fi
1358
+
1359
fi
1360
}
1361