Updating from centos 7

I would like to update my server from Centos 7 and I find a venue that at a certain point ask to execute:
sudo dnf install http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-repos-8.2-2.2004.0.1.el8.x86_64.rpm http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-release-8.2-2.2004.0.1.el8.x86_64.rpm http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-gpg-keys-8.2-2.2004.0.1.el8.noarch.rpm that unfortunately returns 404. What are updated url to download Centos 8 and install it?

Base URL is here

However, you’ll want to follow the directions in the banner, I suspect.

CentOS Linux 7 and 8 are both EOL. The project never actually supported in place upgrades between those two versions, but there are various third party tools that will attempt to do it.

You would be much better off starting with a fresh install of CentOS Stream 9 or 10, which are the currently maintained versions.

As an aside, there is now a tool called leapp in the default repos that allows upgrading from CentOS Stream 9 to 10, and most likely will work for 10 to 11 in the future as well.