yum remove epel-release
and after that:
dnf repolist dnf list installed
etc. worked (at least on my CentOS 7 system).