Montée de version PHP sur serveur ou VPS

Déterminer la version Debian ou Xubuntu ?

# apt-get install inxi
# inxi -F

# apt -y install lsb-release apt-transport-https ca-certificates wget
# wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
# echo « deb https://packages.sury.org/php/ $(lsb_release -sc) main » | sudo tee /etc/apt/sources.list.d/php.list
# apt update
# apt install php7.4
# php -v
# apt install php7.4-{bcmath,bz2,intl,gd,mbstring,mysql,zip}
# nano /var/www/html/info.php
# cd /var/www/html/
# ls
# cp info.php gj33.fr/
# reboot
# apt install php7.4-fpm php7.4-common php7.4-mysql php7.4-gmp php7.4-curl php7.4-intl php7.4-mbstring php7.4-xmlrpc php7.4-gd php7.4-xml php7.4-cli php7.4-zip
# php -v
# apt update && apt upgrade
# php -v