File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ======
2+ ELRepo
3+ ======
4+
5+ Enables ELRepo, a community based repository for Enterprise Linux Packages with a focus
6+ on drivers for hardware such as network interface cards.
7+
8+ * ``DIB_ELREPO_PKGLIST `` A list of packages to install from ELRepo.
9+ Default is none.
Original file line number Diff line number Diff line change 1+ #! /bin/bash -lv
2+
3+ if [[ ${DISTRO_NAME} =~ (centos| rhel) && -n ${DIB_ELREPO_PKGLIST} ]]; then
4+ dnf install -y " ${DIB_ELREPO_PKGLIST} "
5+ else
6+ echo " You must set the package list: \" $DIB_ELREPO_PKGLIST \" ."
7+ exit 1
8+ fi
9+
10+ exit 0
Original file line number Diff line number Diff line change 1+ #! /bin/bash -lv
2+
3+ case " $DISTRO_NAME " in
4+ centos* | rhel* )
5+ rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
6+ dnf install -y https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
7+ ;;
8+ * )
9+ echo " Distro \" $DISTRO_NAME \" is not supported"
10+ exit 1
11+ ;;
12+ esac
13+
14+ exit 0
You can’t perform that action at this time.
0 commit comments