Legacy version of nginx installed by default

dnf install nginx installs legacy version 1.20.1. Any particular reason why and not the stable recent version?

Because that is the version released by RHEL and set as default in the distribution.

Using dnf module list nginx shows that 1.22 is available and of which you can enable with:

dnf module enable nginx:1.22

and you can then ensure you have the latest one. Module streams for later versions are not set as the default by RHEL as chosen by them. Rocky is 1:1 with RHEL so will also be in sync in terms of package versions as well as module streams.

Also note, RHEL backports fixes, so if something is vulnerable in 1.22 that gets fixed, and it’s also vulnerable in 1.20, then it will get backported by RHEL to ensure 1.20 is not vulnerable.

1 Like

Thanks for the reply. New to Rocky Linux and hadn’t quite appreciated the link back to RHEL. I understand the need to keep backwards compatible version number wise.

No problem :slight_smile: Rocky aims to be 1:1 with RHEL and this hasn’t changed.

Some other distros that used to track RHEL have gone ABI-compatible instead, which means they no longer track RHEL 1:1 and therefore package versions are more likely to be in sync with CentOS Stream instead.

On the RHEL side there is:

The “non-stream” nginx 1.20 in RHEL 9, is it still with RH support to 2032?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.