Differenze tra le versioni di "Aggiungere packages.sury.org repository"
Jump to navigation
Jump to search
(Creata pagina con "==Introduzione== Repostory per l'aggiunta di PHP 5.6, 7.0-1-2-3 per Debian. ===Shell Script=== <pre> #!/bin/bash # To add this repository please do: if [ "$(whoami)" != "roo...") |
|||
| (5 versioni intermedie di uno stesso utente non sono mostrate) | |||
| Riga 1: | Riga 1: | ||
| + | {{Script_Linux}} | ||
| + | [[File:Debian-logo.png|sinistra|100px]] | ||
| + | |||
==Introduzione== | ==Introduzione== | ||
| − | + | Repository per l'aggiunta di PHP 5.6, 7.0-1-2-3 distro Debian 9 (Stretch). | |
| + | {{-}} | ||
===Shell Script=== | ===Shell Script=== | ||
<pre> | <pre> | ||
| Riga 16: | Riga 20: | ||
${SUDO} apt-get update | ${SUDO} apt-get update | ||
</pre> | </pre> | ||
| + | |||
| + | [[Category:PHP]] | ||
| + | [[Category:Debian 9 Stretch]] | ||
Versione attuale delle 11:22, 5 ago 2019
Categoria: Script Linux
Introduzione
Repository per l'aggiunta di PHP 5.6, 7.0-1-2-3 distro Debian 9 (Stretch).
Shell Script
#!/bin/bash
# To add this repository please do:
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
${SUDO} apt-get -y install apt-transport-https lsb-release ca-certificates
${SUDO} wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
${SUDO} sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
${SUDO} apt-get update