Is always a similar error related to selinux. I have no experience with RHEL but the client is asking for it and I can’t install the tools I need without snap. Any ide how to force this install or download an rpm and install it directly?
This error message fully describes the problem. The package in EPEL in epel requires the latest version of selinux-policy-base from RHEL7 which is 3.13.1-268.el7_9.2, while yours is selinux-policy-base = 3.13.1-229.el7_6.15. AFAICT RHEL 7.6 and 8.1 are already past their maintenance windows. EPEL packages are built only against the latest versions of RHEL releases, so you’d actually need to update to 7.9 or 8.4 (or 8.5?). I don’t know whether Azure provides those, best to get in touch with their support.
Alternatively you can grab srpms and just rebuild the packages yourself which is probably the easiest solution if you cannot update.
If you’re trying to enable the additional RH repos listed (outside of EPEL), you are likely encountering a problem there. Once you’ve got a valid subscription, I’d recommend upgrading to the most recent releases, if possible (e.g. 7.9 and 8.5, respectively). I am running several snaps on my RHEL 8.5 install at present, without issue.