From b4ef6487656a4e1f446f0f9eb2d446c7cb6118e5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 8 Nov 2021 08:52:25 +0100 Subject: Wizard: EPEL-9 not yet available --- wizard/index.php | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/wizard/index.php b/wizard/index.php index 229fe7e6..b30797b4 100644 --- a/wizard/index.php +++ b/wizard/index.php @@ -50,9 +50,9 @@ $osname = [ 'RHEL 8' => 'RHEL 8.4', 'RHEL 7' => 'RHEL 7.9 (maintained until June 2024)', ':centos' => 'CentOS Linux and other clones', - 'CentOS 9' => 'CentOS 9', + 'CentOS 9' => 'CentOS 9 (Development version)', 'CentOS 8' => 'CentOS 8', - 'CentOS 7' => 'CentOS 7.9.2009 (maintained until June 2024)', + 'CentOS 7' => 'CentOS 7 (maintained until June 2024)', ':fedora' => 'Fedora Linux', 'Fedora 35' => 'Fedora 35', 'Fedora 34' => 'Fedora 34', @@ -199,14 +199,24 @@ if ($php && $os && $type && !$err) { } else { $yum = 'yum'; } - 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); + if ($ver < EL_DEV) { + 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("
        $yum install https://rpms.remirepo.net/enterprise/remi-release-%d.rpm
    ", $ver); printf("

  • "); - printf("
  • Command to install the yum-utils package (for the yum-config-manager command):"); - printf("
        $yum install yum-utils
    "); + if ($yum === "yum") { + printf("
  • Command to install the yum-utils package (for the yum-config-manager command):"); + printf("
        $yum install yum-utils
    "); + } + + if ($ver >= EL_DEV) { + printf("
  • As EPEL is not yet ready, you have to enable the main repository:"); + printf("
        dnf config-manager --enable remi

  • ", $ver); + } + printf("
    "); if ($dist == 'RHEL' && $ver < 8) { printf("
  • On RHEL you (probably) need to enable the optional channel for some dependencies.

  • "); -- cgit