$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Add PHP 8 Repository for Debian-Based Systems

October 17, 2021 | By the+gnu+linux+evangelist.

GNU/Linux Debian PHP 8 Repository Adding

Hi! The Tutorial shows you Step-by-Step How to Add PHP 8.x Repository in Debian-Based GNU/Linux OSes.

And PHP 8 for Debian is a major Update of the PHP Language!

So this Repo Setup is Valid for All the Debian-based Platforms like:

  • Kali
  • Deepin
  • MX Linux
  • antiX
  • Parrot
  • Netrunner
  • Voyager
  • SparkyLinux
  • MakuluLinux
  • Elive
  • LMDE
  • Parsix

Finally, the Repo includes PHP 8.x, 7.x, and 5.6 Releases with compiled Extensions.

How to Add PHP 8 Repository for Debian-based Systems - Featured
  1. 1. Launching Terminal

    How to QuickStart with Command Line on Debian GNU/Linux:

    Console Debian QuickStart Guide
  2. 2. Installing Dependencies

    Then to Install Required Software
    Run:

    sudo apt install apt-transport-https lsb-release ca-certificates wget
    Authenticate with the User Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo.
  3. 3. Adding PHP 8 GPG Key

    Again to Add PHP 8 GPG Signature Key
    Do:

    sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
  4. 4. Adding PHP 8 Repo

    Then to Add PHP 8 Repository for Debian
    For Debian simply execute:

    sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" >> /etc/apt/sources.list.d/php.list'
    Instead, for Sid and some Debian derivative like Kali, set it directly as for Bullseye:
    sudo sh -c 'echo "deb https://packages.sury.org/php/ bullseye main" >> /etc/apt/sources.list.d/php.list'
    In case to amend the Repo Manually, use the nano Editor:
    sudo nano /etc/apt/sources.list.d/php.list

    Ctrl+x to Save & Exit from nano.
    Next to Refresh Debian Apt Repo Sources
    Play:

    sudo apt update

Contents


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,