[PHP-WEBMASTER] [web-php] master: Update the Installation Instructions for Debian (#1838)

Author: gdaffa (gdaffa)
Committer: GitHub (web-flow)
Pusher: shivammathur
Date: 2026-02-27T14:30:28+05:30

Commit: Update the Installation Instructions for Debian (#1838) · php/web-php@1dfe6a0 · GitHub
Raw diff: https://github.com/php/web-php/commit/1dfe6a0e1839dbae42c047a8a9a044da03f5dfb3.diff

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

Changed paths:
  M include/download-instructions/linux-debian-cli-community.php

Diff:

diff --git a/include/download-instructions/linux-debian-cli-community.php b/include/download-instructions/linux-debian-cli-community.php
index cc1595689a..fb19c4005f 100644
--- a/include/download-instructions/linux-debian-cli-community.php
+++ b/include/download-instructions/linux-debian-cli-community.php
@@ -4,10 +4,16 @@
<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 apt-transport-https curl
+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 sh -c 'echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] Index of /php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
+sudo tee /etc/apt/sources.list.d/php.sources &lt;&lt;EOF
+Types: deb
+URIs: Index of /php/
+Suites: $(lsb_release -sc)
+Components: main
+Signed-By: /usr/share/keyrings/debsuryorg-archive-keyring.gpg
+EOF
sudo apt-get update

# Install PHP.