How to Add Nginx Repository for Ubuntu Based Systems

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

Enabling Nginx Ubuntu Repository

You Are Welcome! The Tutorial Shows You Step-by-Step How to Add Latest Nginx Repository in Ubuntu GNU/Linux Based OSes.

And NGINX for Ubuntu 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.

Finally, this Setup is Valid for All the Ubuntu Based Platforms like:

  • Linux Mint
  • Lubuntu
  • Kubuntu
  • Xubuntu
  • Zorin OS
  • Elementary OS
  • Linux Lite
  • Bodhi Linux
  • Kde Neon
  • Pop_OS!
  • Voyager
  • LXLE
  • feren OS
  • Peppermint
  • Q4OS
  • Linux Ultimate Edition
How to Add Nginx Repository for Ubuntu 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 Ubuntu Based Systems - Open Terminal Shell Emulator
  2. 2. Adding Nginx Repo

    Then to Add Nginx Repository for Ubuntu
    Execute:

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

    And for the Sources:

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

    Next to Add Nginx GPG Key
    Get the Key with:

    wget http://nginx.org/keys/nginx_signing.key

    And Setup it like:

    sudo apt-key add nginx_signing.key

    Finally, to Clean up:

    rm nginx_signing.key
  4. 4. Refreshing Ubuntu Sources

    Finally, to Refresh Ubuntu Apt Repo Sources
    Do:

    sudo apt update
  5. 5. Installing Nginx on Ubuntu

    Finally, to Install Nginx for Ubuntu

    Nginx Ubuntu Installation Guide

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