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

How to Add Nginx Repository for Debian-Based Systems

May 3, 2019 | By the+gnu+linux+evangelist.

Nginx Debian Repository Add

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

And NGINX for Debian is a Free, Open-Source, High-Performance HTTP Server and Reverse Proxy, as well as an IMAP/POP3 Proxy Server.

Especially relevant: it ‘s needed to Manually SetUp the Apt Repo to Get Installed the Latest Nginx Mainline Release, that because the Default Repo is Serving an Older one…

Moreover, the Nginx ‘Mainline’ version is generally regarded as More Reliable because include All Bug Fixes in it, and not just critical fixes as for the stable branch.

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

  • Kali Linux
  • Deepin Linux
  • MX Linux
  • antiX Linux
  • Parrot Linux
  • SparkyLinux
  • MakuluLinux
  • Elive Linux
  • LMDE Linux
  • CrunchBang Linux
  • Parsix Linux
How to Add NGINX Repository for Debian-based Systems - Featured
  1. 1. Accessing Shell

    Open a Terminal window
    Or Login into Server Shell shell:
    (Press “Enter” to Execute Commands)

    How to Add NGINX Repository for Debian-based Systems - Open Terminal Shell Emulator
  2. 2. Adding NGINX Repo

    Then to Add NGINX Repository for Debian
    For Debian 10 Buster and for all the Debian-based do:

    echo "deb http:/
    ginx.org/packages/mainline/debian/ buster nginx" | sudo tee -a /etc/apt/sources.list.d
    ginx.list
    echo "deb-src http:/
    ginx.org/packages/mainline/debian/ buster nginx" | sudo tee -a /etc/apt/sources.list.d
    ginx.list

    Instead, for or Debian 9 Stretch:

    echo "deb http:/
    ginx.org/packages/mainline/debian/ stretch nginx" | sudo tee -a /etc/apt/sources.list.d
    ginx.list
    echo "deb-src http:/
    ginx.org/packages/mainline/debian/ stretch nginx" | sudo tee -a /etc/apt/sources.list.d
    ginx.list

    Again for Debian 8 Jessie:

    echo "deb http:/
    ginx.org/packages/mainline/debian/ jessie nginx" | sudo tee -a /etc/apt/sources.list.d
    ginx.list
    echo "deb-src http:/
    ginx.org/packages/mainline/debian/ jessie nginx" | sudo tee -a /etc/apt/sources.list.d
    ginx.list

    Finally, on Debian 7 Wheezy:

    echo "deb http:/
    ginx.org/packages/mainline/debian/ wheezy nginx" | sudo tee -a /etc/apt/sources.list.d
    ginx.list
    echo "deb-src http:/
    ginx.org/packages/mainline/debian/ wheezy nginx" | sudo tee -a /etc/apt/sources.list.d
    ginx.list

    Finally, for Debian 6 Squeeze:

    echo "deb http:/
    ginx.org/packages/mainline/debian/ squeeze nginx" | sudo tee -a /etc/apt/sources.list.d
    ginx.list
    echo "deb-src http:/
    ginx.org/packages/mainline/debian/ squeeze nginx" | sudo tee -a /etc/apt/sources.list.d
    ginx.list
  3. 3. Adding GPG Key

    Now Add NGINX GPG Key
    First, Get it:

    wget http:/
    ginx.org/keys
    ginx_signing.key

    And then to Setup:

    sudo apt-key add nginx_signing.key

    Finally, to Clean up:

    rm nginx_signing.key
  4. 4. Refreshing Debian Sources

    Next to Refresh Debian Apt Repo Sources
    Do:

    sudo apt-get update
  5. 4. Installing NGINX on Debian

    Finally, to Install NGINX for Debian

    Nginx Debian Installation Guide