1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 07:12:16 +01:00
Files
archived-web-php/include/download-instructions/linux-fedora-cli-community.php

20 lines
563 B
PHP

<p>
On the command line, run the following commands:
</p>
<pre><code class="language-bash line-numbers">
# Add the Remi's RPM repository.
sudo dnf install -y dnf-plugins-core
sudo dnf install -y https://rpms.remirepo.net/fedora/remi-release-$(rpm -E %fedora).rpm
<?php if ($multiversion) { ?>
# Install PHP (multiple versions).
sudo dnf install -y php<?= $versionNoDot; ?>
<?php } else { ?>
sudo dnf module reset php -y
sudo dnf module enable php:remi-<?= $version; ?> -y
# Install PHP (single/default version).
sudo dnf install -y php
<?php } ?>
</code></pre>