Closed atnjqt closed 9 months ago
This is related to your installation environment and not having the specific version of nginx available for installation (nothing provides nginx-r1.24.0
) - check your ability to sudo dnf install nginx-r1.24.0
and you should find that it errors, unable to find a match.
I'm not sure where your current nginx
executable is coming from, but I'm guessing it's from the default amazonlinux
repos. Wherever this is from, its rpm spec file doesn't provide nginx-r1.24.0
, but the nginx packages from nginx.org do: https://hg.nginx.org/pkg-oss/file/default/rpm/SPECS/nginx.spec.in#l112.
Setup instructions for the nginx repos are at https://nginx.org/en/linux_packages.html#RHEL, though you'll need to adjust the base URL to suit Amazon Linux; URL structures for the nginx repos can be browsed from https://nginx.org/packages/.
In other words, create the nginx.repo
file, update baseurl=http://nginx.org/packages/amzn/2023/$basearch/
and you should be good to go to install your built module and the correct version of nginx.
Description the bug
I am unable to install the rpm on Amazon Linux 2023
Expected behaviour
Versions and Systems