Skip to content

Instantly share code, notes, and snippets.

@hpherzog
Last active December 19, 2015 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hpherzog/8824136 to your computer and use it in GitHub Desktop.
Save hpherzog/8824136 to your computer and use it in GitHub Desktop.
Install mainline version of nginx on wheezy.
#!/bin/sh
# Remove nginx that is already installed.
apt-get purge nginx
apt-get autoremove
(cat <<-SRC
# nginx mainline repository
deb http://nginx.org/packages/mainline/debian/ wheezy nginx
deb-src http://nginx.org/packages/mainline/debian/ wheezy nginx
SRC
) > /etc/apt/sources.list.d/nginx-mainline.list
wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key
apt-get update
apt-get install nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment