diff --git a/install/terminal/libraries.sh b/install/terminal/libraries.sh index 0e83286d..13c486ee 100644 --- a/install/terminal/libraries.sh +++ b/install/terminal/libraries.sh @@ -1,5 +1,5 @@ sudo apt install -y \ - build-essential pkg-config autoconf bison clang rustc \ + build-essential ppa-purge pkg-config autoconf bison clang rustc \ libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \ libvips imagemagick libmagickwand-dev mupdf mupdf-tools gir1.2-gtop-2.0 gir1.2-clutter-1.0 \ redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev libpq-dev postgresql-client postgresql-client-common diff --git a/install/terminal/select-dev-language.sh b/install/terminal/select-dev-language.sh index fe849526..f9386b46 100644 --- a/install/terminal/select-dev-language.sh +++ b/install/terminal/select-dev-language.sh @@ -21,6 +21,8 @@ if [[ -n "$languages" ]]; then ;; PHP) sudo add-apt-repository -y ppa:ondrej/php + # Check the version of source.list file and replace $(lsb_release -sc) with noble + sudo sed -i "s/$(lsb_release -sc)/noble/g" /etc/apt/sources.list.d/ondrej-ubuntu-php-"$(lsb_release -sc)".sources sudo apt -y install php8.4 php8.4-{curl,apcu,intl,mbstring,opcache,pgsql,mysql,sqlite3,redis,xml,zip} php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php composer-setup.php --quiet && sudo mv composer.phar /usr/local/bin/composer diff --git a/migrations/1747995850.sh b/migrations/1747995850.sh new file mode 100644 index 00000000..a370e12b --- /dev/null +++ b/migrations/1747995850.sh @@ -0,0 +1 @@ +sudo apt install -y ppa-purge \ No newline at end of file diff --git a/uninstall/dev-language.sh b/uninstall/dev-language.sh index 43490976..ac2c3642 100644 --- a/uninstall/dev-language.sh +++ b/uninstall/dev-language.sh @@ -21,7 +21,7 @@ if [[ -n $languages ]]; then ;; PHP) sudo apt -y purge php8.4 php8.4-{curl,apcu,intl,mbstring,opcache,pgsql,mysql,sqlite3,redis,xml,zip} - sudo add-apt-repository -y --remove ppa:ondrej/php + sudo ppa-purge -y ppa:ondrej/php sudo rm /usr/local/bin/composer ;; Python)