diff options
| author | Remi Collet <remi@remirepo.net> | 2022-05-18 14:58:05 +0200 | 
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2022-05-18 14:58:05 +0200 | 
| commit | de24c8b9e88cb10b0c67fb2283512c99bddcbdaa (patch) | |
| tree | 910118d102c0a329c41dbdfc1452defcbf11834f | |
| parent | 890bd4ca08fb9e688602258847ca15f5924b65f4 (diff) | |
Wizard: add instructions to enable CRB
| -rw-r--r-- | wizard/index.php | 16 | 
1 files changed, 14 insertions, 2 deletions
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("<li>Command to enabled the <b>CRB</b> repository:"); +				printf("<pre>    subscription-manager repos --enable codeready-builder-for-rhel-%d-x86_64-rpms</pre></li><br />", $ver); +				break; +			case 'CentOS 8': +			case 'CentOS 9': +				printf("<li>Command to enabled the <b>CRB</b> repository:"); +				printf("<pre>    dnf config-manager --set-enabled %s</pre></li><br />", $ver < 9 ? 'powertools' : 'crb'); +				break; +		}  		if ($ver < EL_DEV || EPEL_DEV > 0) { -		    printf("<li>Command to install the EPEL repository configuration package:"); +		    printf("<li>Command to install the <b>EPEL</b> repository configuration package:");  		    printf("<pre>    $yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-%d.noarch.rpm</pre></li><br />", $ver);  		} -        printf("<li>Command to install the Remi repository configuration package:"); +        printf("<li>Command to install the <b>Remi</b> repository configuration package:");          printf("<pre>    $yum install https://rpms.remirepo.net/enterprise/remi-release-%d.rpm</pre>", $ver);          printf("</li><br />");  | 
