Install specific nginx version on ubuntu

https://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.16.0-1~bionic_amd64.deb

vim /etc/apt/sources.list.d/nginx.list
deb [arch=amd64] http://nginx.org/packages/mainline/ubuntu/ bionic nginx
deb-src http://nginx.org/packages/mainline/ubuntu/ bionic nginx
cd /tmp
wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key
apt update
apt list -a nginx
apt install nginx=1.15.12-1~bionic

answer n on both

Leave a Reply

Your email address will not be published.