[PHP-WEBMASTER] [web-php] master: docs(download): Change `apt-get` to `apt` for Debian installation

Author: gibran (gdaffa)
Committer: Derick Rethans (derickr)
Date: 2026-03-03T06:22:16-05:00

Commit: docs(download): Change `apt-get` to `apt` for Debian installation · php/web-php@b17fd3c · GitHub
Raw diff: https://github.com/php/web-php/commit/b17fd3c831f043ac78146f41bbfd079e4a65ac9b.diff

docs(download): Change `apt-get` to `apt` for Debian installation

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 fb19c4005f..1faf2dc220 100644
--- a/include/download-instructions/linux-debian-cli-community.php
+++ b/include/download-instructions/linux-debian-cli-community.php
@@ -3,8 +3,8 @@
</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 apt update
+sudo apt 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
@@ -14,8 +14,8 @@
Components: main
Signed-By: /usr/share/keyrings/debsuryorg-archive-keyring.gpg
EOF
-sudo apt-get update
+sudo apt update

# Install PHP.
-sudo apt-get install -y php<?= $version; ?>
+sudo apt install -y php<?= $version; ?>
</code></pre>