Skip to content

Commit 2fdb205

Browse files
remicolletshivammathur
authored andcommitted
add instructions for fedora/redhat and multiple versions
1 parent 8f19551 commit 2fdb205

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

include/download-instructions/linux-fedora-cli-community.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@
55
# Add the Remi's RPM repository.
66
sudo dnf install -y dnf-plugins-core
77
sudo dnf install -y https://rpms.remirepo.net/fedora/remi-release-$(rpm -E %fedora).rpm
8+
<?php if ($multiversion) { ?>
9+
10+
# Install PHP (multiple versions).
11+
sudo dnf install -y php<?= $versionNoDot; ?>
12+
<?php } else { ?>
813
sudo dnf module reset php -y
914
sudo dnf module enable php:remi-<?= $version; ?> -y
1015

11-
# Install PHP.
16+
# Install PHP (single/default version).
1217
sudo dnf install -y php
18+
<?php } ?>
1319
</code></pre>

include/download-instructions/linux-redhat-cli-community.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@
77
sudo dnf install -y dnf-plugins-core
88
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm
99
sudo dnf install -y https://rpms.remirepo.net/enterprise/remi-release-$(rpm -E %rhel).rpm
10+
<?php if ($multiversion) { ?>
11+
12+
# Install PHP (multiple versions).
13+
sudo dnf install -y php<?= $versionNoDot; ?>
14+
<?php } else { ?>
1015
sudo dnf module reset php -y
1116
sudo dnf module enable php:remi-<?= $version; ?> -y
1217

13-
# Install PHP.
18+
# Install PHP (single/default version).
1419
sudo dnf install -y php
20+
<?php } ?>
1521
</code></pre>

0 commit comments

Comments
 (0)