Dom0 install error

Can’t install rpm package in dom0:

sudo dnf install shared-folders.rpm
Error during downloading metadata for repository ‘qubes-dom0-cached’
Cannot download repodata/repomd.xml: All mirrors were tried
Error: Problem: conflicting requests - nothing provides qubes-core-agent-qrexec needed by qubes-shared-folders-0.4.1-72.qbs4.2.x86_64

First, you need to prevent dnf from trying to update metadata:
sudo dnf install -C shared-folder.rpm

:information_source: dom0 doesn’t have direct access to the internet. See How to install software in dom0 | Qubes OS

But then qubes-core-agent-qrexec is required and missing. dnf provides -C qubes-core-agent-qrexec cannot find it. It is only available in (and made for) qubes, not dom0: