How to Add Nginx Repository for Debian Based Systems

May 3, 2019 | By thelinuxevangelist | Filed in: Tutorial.

Nginx Debian Repository Add

You Are Welcome! The Tutorial Shows You Step-by-Step How to Add Nginx Repository in Debian GNU/Linux Based 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…

Furthermore, 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:
    (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
    And for Debian 10 Buster at this Time do:

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

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

    For Debian 9 Stretch:

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

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

    On Debian 8 Jessie:

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

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

    Again in Debian 7 Wheezy:

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

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

    Finally, for Debian 6 Squeeze:

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

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

  3. 3. Adding GPG Key

    Now Add Nginx GPG Key
    First Get it:

    wget http://nginx.org/keys/nginx_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

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