I personally need intel-media-driver from the non-free repo (for video hardware acceleration) and I don’t want to permanently enable the said repo, since I don’t run other software considered as “non-free” by Fedora.
The command shared by Glenn Johnson doesn’t work anymore — I don’t know if due to upgrading to Fedora 34 or some other change(s).
if you read in the dnf’s manpage, you may find this option:
Enable just specific repositories by an id or a glob. Can be used multiple times with accumulative effect. It is basically a shortcut for --disablerepo="*" --enablerepo=<repoid> and is mutually exclusive with the
You can give a try.
The repo should already be installed, not enabled, as augenauf said.