-
-
Save HodoJi/f37301fecd504d20e17aed3ed57b2bcc to your computer and use it in GitHub Desktop.
Install "deb.sury.org" repository for PHP on Debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# For up-to-date version see : https://packages.sury.org/php/README.txt | |
wget https://packages.sury.org/php/apt.gpg -O /usr/share/keyrings/deb.sury.org-php.gpg | |
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php-sury.list | |
apt update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or using cURL + sudo as commands directly (but one liner):