From 9bb510e4081bc5b6c5ce1b8f2af62734a0e1c73e Mon Sep 17 00:00:00 2001 From: Thomas Widhalm Date: Thu, 24 Oct 2019 14:17:23 +0200 Subject: [PATCH] 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 -- 2.40.0