From 2db85deec8676032e7da94afd3c9d0c8896f9d67 Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Thu, 24 Oct 2019 12:18:26 +0200 Subject: [PATCH 1/2] Clarify the installation of EPEL repository on CentOS vs RHEL --- doc/02-installation.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/02-installation.md b/doc/02-installation.md index b247ca972..362fb22e3 100644 --- a/doc/02-installation.md +++ b/doc/02-installation.md @@ -147,7 +147,19 @@ CentOS 7/6: yum install epel-release ``` -If you are using RHEL you need to enable the `optional` repository and then install +RHEL 7: + +``` +yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm +``` + +RHEL 6: + +``` +yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm +``` + +If you are using RHEL 6 or 7 you need to additionally enable the `optional` repository before installing the [EPEL rpm package](https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F). ``` From 9bb510e4081bc5b6c5ce1b8f2af62734a0e1c73e Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Thu, 24 Oct 2019 14:17:23 +0200 Subject: [PATCH 2/2] Fix the order of commands for adding EPEL to RHEL --- doc/02-installation.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/doc/02-installation.md b/doc/02-installation.md index 362fb22e3..eab58f7f5 100644 --- a/doc/02-installation.md +++ b/doc/02-installation.md @@ -147,25 +147,21 @@ CentOS 7/6: yum install epel-release ``` +If you are using RHEL 6 or 7 you need to additionally enable the `optional` repository before installing +the [EPEL rpm package](https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F). + RHEL 7: ``` +subscription-manager repos --enable rhel-7-server-optional-rpms yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm ``` RHEL 6: ``` -yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm -``` - -If you are using RHEL 6 or 7 you need to additionally enable the `optional` repository before installing -the [EPEL rpm package](https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F). - -``` -subscription-manager repos --enable rhel-7-server-optional-rpms -# or subscription-manager repos --enable rhel-6-server-optional-rpms +yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm ``` #### SLES/OpenSUSE Repositories