1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
Files
archived-web-php/include/download-instructions/linux-debian-cli-community.php
gdaffa 1dfe6a0e18 Update the Installation Instructions for Debian (#1838)
* docs(download): Remove `apt-transport-https` from Debian installation

* docs(download): Update Debian source list to `deb822` format
2026-02-27 14:30:28 +05:30

22 lines
693 B
PHP

<p>
On the command line, run the following commands:
</p>
<pre><code class="language-bash line-numbers">
# Add the packages.sury.org/php repository.
sudo apt-get update
sudo apt-get install -y lsb-release ca-certificates curl
sudo curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
sudo dpkg -i /tmp/debsuryorg-archive-keyring.deb
sudo tee /etc/apt/sources.list.d/php.sources &lt;&lt;EOF
Types: deb
URIs: https://packages.sury.org/php/
Suites: $(lsb_release -sc)
Components: main
Signed-By: /usr/share/keyrings/debsuryorg-archive-keyring.gpg
EOF
sudo apt-get update
# Install PHP.
sudo apt-get install -y php<?= $version; ?>
</code></pre>