Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.