Yea, install AlmaLinux 9, not CentOS stream.
Sounds like there's a pretty major config error somewhere.
dnf install elrepo-release epel-release -y
Those are 2 standard repos, especially EPEL that CWP needs to install.
That code line of course uses dnf, and the -y is answering yes, to install them.
Then once you have EPEL installed, and run dnf --refresh update, it will update itself.
Are you behind a NAT, or is this a public server?