Skip to content
Browse files

Hold libpcre3 (Breaks Raspberry Pi Zero)

  • Loading branch information...
Cat5TV committed Feb 16, 2019
1 parent 4160ef7 commit 3e9687080c0de2fe91c0da135e1b701e6d3d9398
Showing with 7 additions and 4 deletions.
  1. +7 −4 build/036-php72
@@ -10,14 +10,19 @@ apt remove --purge -y php7.0-readline
apt -y autoremove

# Install PHP 7.2
echo "Setting up new repository..."
apt update
echo "Installing PHP 7.2..."
wget -q -O- | sudo apt-key add -
echo "deb $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
apt update

# Sury has some updated packages that if not upgraded first will break install
# First, hold packages that will break on Raspberry Pi if upgraded to Sury's version
echo "libpcre3 hold" | sudo dpkg --set-selections
# Now, upgrade
apt update
apt -y upgrade

echo "Installing PHP 7.2..."
# Install PHP 7.2
apt install -y php7.2
apt install -y php7.2-cli
@@ -33,8 +38,6 @@ apt install -y php7.2-readline
apt install -y php7.2-sqlite3
apt install -y php7.2-xml
apt install -y libapache2-mod-php7.2
echo "Abort here - run remaining manually"
apt install -y libargon2-1
apt install -y libsodium23
apt install -y php-curl

0 comments on commit 3e96870

Please sign in to comment.
You can’t perform that action at this time.