skip to Main Content

I am following this medium page to upgrade the Nginx version.
But, it is still showing the 1.18 version after I upgrade.

soubhagya.pradhan@FALAIDEDEV01:~$ nginx -v
nginx version: nginx/1.18.0 (Ubuntu)

I got no error in the process too. How I can upgrade Nginx to the latest version?

I am expecting this to be upgraded to the latest version.

2

Answers


  1. The latest version that the ppa:nginx/stable repository has is 1.18, as you can see here:

    https://launchpad.net/~nginx/+archive/ubuntu/stable

    So that’s why you are getting this version.

    Login or Signup to reply.
  2. To avoid building it from sources, you can use ready-made packages of nginx for certain Linux distros as described here, e.g. for Ubuntu (only 20.04, 22.04, 22.10 and 23.04 Ubuntu versions are supported now). You will need to set up the nginx packages repository (instead of or in addition to your distro’s default repositories).

    Version 1.25.* of nginx is currently available in "mainline" repo (http://nginx.org/packages/mainline/ubuntu, not http://nginx.org/packages/ubuntu). But keep in mind that this may change over time.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search