Skip to content

Instantly share code, notes, and snippets.

@gabrielstuff
Created August 26, 2012 21:00
Show Gist options
  • Save gabrielstuff/3483571 to your computer and use it in GitHub Desktop.
Save gabrielstuff/3483571 to your computer and use it in GitHub Desktop.
A simple readme about adding update package for nginx

#Update nginx on Debian

Add repo

Edit your source.list

vi /etc/apt/sources.list

and add this at the end :

deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx

Sign

type in your terminal :

gpg --keyserver keyserver.ubuntu.com --recv-key ABF5BD827BD9BF62
gpg -a --export ABF5BD827BD9BF62 | apt-key add -

Update

apt-get update

Install / Update nginx

apt-get install nginx

Finish !

@williamdes
Copy link

rm -v /usr/share/keyrings/nginx-archive-keyring.gpg
# Seems to be expired as of 02/07/2024
wget http://nginx.org/packages/keys/nginx_signing.key -O - | sudo gpg --dearmor --output /usr/share/keyrings/nginx-archive-keyring.gpg
# Works fine
gpg --keyserver keyserver.ubuntu.com --recv-key ABF5BD827BD9BF62
gpg -a --export ABF5BD827BD9BF62 | sudo gpg --dearmor --output /usr/share/keyrings/nginx-archive-keyring.gpg

Source file: /etc/apt/sources.list.d/nginx.list

deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/debian bookworm nginx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment