Is safe to dnf over tor?

All repos are blocked on my sys. So I can’t do any updades, or install some packages.

Should be. Qubes does it out of the box. You just need to make sure the GPG key is acquired over a trusted channel.