On Thu, May 12, 2022 at 1:10 PM Sandro Bonazzola <sbonazzo@redhat.com> wrote:
[snip]

you can:

rpm -e --justdb centos-stream-release
dnf update redhat-release -y
rpm -i --justdb --nodeps --force "http://mirror.centos.org/centos/8-stream/BaseOS/$(rpm --eval '%_arch')/os/Packages/centos-stream-release-8.6-1.el8.noarch.rpm"

Alma, Rocky and others are providing centos-release in their own release rpm so this step is not needed there.
 

I don't like the "--nodeps" part... ;-(