Advertisement
tomba2k

nginx.sh

Feb 28th, 2024
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. sudo apt install curl gnupg2 ca-certificates lsb-release debian-archive-keyring
  2.  
  3. curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
  4. | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
  5.  
  6. gpg --dry-run --quiet --no-keyring --import --import-options import-show /usr/share/keyrings/nginx-archive-keyring.gpg
  7.  
  8. echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \
  9. http://nginx.org/packages/debian `lsb_release -cs` nginx" \
  10. | sudo tee /etc/apt/sources.list.d/nginx.list
  11.  
  12. echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" \
  13. | sudo tee /etc/apt/preferences.d/99nginx
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement