How to Add Nginx Repository for Ubuntu Based Systems

May 3, 2019 | By the+gnu+linux+evangelist | 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
  • Trisquel
  • 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

    echo "deb xenial nginx" | sudo tee -a /etc/apt/sources.list.d/nginx.list

    And for the Sources:

    echo "deb-src 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:


    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

    sudo apt update
  5. 5. Installing NGINX on Ubuntu

    Finally, to Install NGINX for Ubuntu

    Nginx Ubuntu Installation Guide

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

QuickChic Theme • Powered by WordPress