Rocky Linux packages needed in parallel

I’m trying to update glibc on my offline system. I downloaded the rpms glibs and glibc-common. But when I try and run

sudo rpm -Uvh glibc-common.rpm

I get the error

glibc is needed by glibc-common

So I ran

sudo rpm -Uvh glibc-common.rpm

but I get the error

glibc-common is needed by glibc

As you can see it’s impossible to install either as one package requires the other. What is a way round this?