From 8b2ba9cab822b80e873c8b7554504eebfaf434c2 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Sat, 23 Sep 2023 11:20:39 -0400 Subject: [PATCH] minor improvements to `install.sh` --- scripts/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 9b3f87f6..72b38470 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -125,17 +125,18 @@ install_cuda_driver_yum() { rhel) status 'Installing EPEL repository...' # EPEL is required for third-party dependencies such as dkms and libvdpau - $SUDO $PACKAGE_MANAGER -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$2.noarch.rpm + $SUDO $PACKAGE_MANAGER -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$2.noarch.rpm || true ;; esac status 'Installing CUDA driver...' $SUDO $PACKAGE_MANAGER -y update - $SUDO $PACKAGE_MANAGER -y install cuda-drivers if [ "$1" = 'centos' ] || [ "$1$2" = 'rhel7' ]; then $SUDO $PACKAGE_MANAGER -y install nvidia-driver-latest-dkms fi + + $SUDO $PACKAGE_MANAGER -y install cuda-drivers } # ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ubuntu