In my centos 7, there are three versions of MySQL 5.6, 5.7, and 8.0 in my yum source. As shown follow:
$ yum --disablerepo=\'*\' --enablerepo=mysql list | gre