Skip to content

Instantly share code, notes, and snippets.

@mbijon
Last active December 11, 2015 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbijon/4668746 to your computer and use it in GitHub Desktop.
Save mbijon/4668746 to your computer and use it in GitHub Desktop.
Enabling auto-update of nginx, Stable on Ubuntu
To enable automatic updates of Linux packages set up the apt repository for the Debian/Ubuntu distributions.
For Debian/Ubuntu, in order to authenticate the nginx repository signature and to eliminate warnings about missing gpg key during installation of the nginx package, it is necessary to add the key used to sign the nginx packages and repository to the apt program keyring. Please download this key from our web site, and add it to the apt program keyring with the following command:
sudo apt-key add nginx_signing.key
For Ubuntu replace codename with Ubuntu distribution codename, and append the following to the end of the /etc/apt/sources.list file:
deb http://nginx.org/packages/ubuntu/ codename nginx
deb-src http://nginx.org/packages/ubuntu/ codename nginx
Supported Ubuntu versions:
Version Codename
10.04 lucid
11.10 oneiric
12.04 precise
12.10 quantal
For Debian/Ubuntu then run the following commands:
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