From de24c8b9e88cb10b0c67fb2283512c99bddcbdaa Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 18 May 2022 14:58:05 +0200 Subject: Wizard: add instructions to enable CRB --- wizard/index.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'wizard') diff --git a/wizard/index.php b/wizard/index.php index b36cb818..42c303f5 100644 --- a/wizard/index.php +++ b/wizard/index.php @@ -222,11 +222,23 @@ if ($php && $os && $type && !$err) { } else { $yum = 'yum'; } + switch ($os) { + case 'RHEL 8': + case 'RHEL 9': + printf("
  • Command to enabled the CRB repository:"); + printf("
        subscription-manager repos --enable codeready-builder-for-rhel-%d-x86_64-rpms

  • ", $ver); + break; + case 'CentOS 8': + case 'CentOS 9': + printf("
  • Command to enabled the CRB repository:"); + printf("
        dnf config-manager --set-enabled %s

  • ", $ver < 9 ? 'powertools' : 'crb'); + break; + } if ($ver < EL_DEV || EPEL_DEV > 0) { - printf("
  • Command to install the EPEL repository configuration package:"); + printf("
  • Command to install the EPEL repository configuration package:"); printf("
        $yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-%d.noarch.rpm

  • ", $ver); } - printf("
  • Command to install the Remi repository configuration package:"); + printf("
  • Command to install the Remi repository configuration package:"); printf("
        $yum install https://rpms.remirepo.net/enterprise/remi-release-%d.rpm
    ", $ver); printf("

  • "); -- cgit