Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt install curl gnupg2 ca-certificates lsb-release debian-archive-keyring
- curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
- | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
- gpg --dry-run --quiet --no-keyring --import --import-options import-show /usr/share/keyrings/nginx-archive-keyring.gpg
- echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
- http://nginx.org/packages/debian `lsb_release -cs` nginx" \
- | sudo tee /etc/apt/sources.list.d/nginx.list
- echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" \
- | sudo tee /etc/apt/preferences.d/99nginx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement