Skip to content

Instantly share code, notes, and snippets.

@2called-chaos
Last active July 9, 2019 12:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2called-chaos/38dfc687a9784ca21600 to your computer and use it in GitHub Desktop.
Save 2called-chaos/38dfc687a9784ca21600 to your computer and use it in GitHub Desktop.
Install nginx from nginx.org PPA sources
# add source
cat >> /etc/apt/sources.list <<EOF
# Nginx
deb http://nginx.org/packages/ubuntu/ disco nginx
deb-src http://nginx.org/packages/ubuntu/ disco nginx
EOF
# add signing key
curl http://nginx.org/packages/keys/nginx_signing.key | sudo apt-key add -
# update sources
aptitude update
# install nginx from PPA
aptitude install nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment