From: Thomas Widhalm Date: Thu, 24 Oct 2019 12:17:23 +0000 (+0200) Subject: Fix the order of commands for adding EPEL to RHEL X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bb510e4081bc5b6c5ce1b8f2af62734a0e1c73e;p=icinga2 Fix the order of commands for adding EPEL to RHEL --- 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