Procédure applicable pour Debian 11/12
On utilise le dépot du contributeur
apt update apt install -y lsb-release ca-certificates apt-transport-https software-properties-common gnupg2 curl echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/sury-php.list curl -fsSL https://packages.sury.org/php/apt.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/sury.gpg