Mysql packages skipped [dependency problems]

You somehow installed a package named mysql80-community-release intended for RHEL/CentOS 8, but your system is CentOS 7. This package provides the repositories to download MySQL, but it provides packages for RHEL/CentOS 8. This won't work on your system.

You need to remove this package and replace it with its equivalent for CentOS 7, i.e. with yum remove mysql80-community-release. After doing so you need to clear yum's cache with yum clean all, then you can install the correct release package and try the installation again.

Alternately, you can upgrade to CentOS 8, and then the installation of packages for CentOS 8 will work.


I tried doing the yum remove mysql80-community-release and yum clean all, i still had the same issue with the package dependencies. I had to do a yum clean all --verbose and it showed me there were cached directories listed under 'untracked repos':

Disk usage under /var/cache/yum/*/* after cleanup:
0      enabled repos
7.9 M  disabled repos:
  4.8 M  /var/cache/yum/x86_64/7/myorg-elastic-6.x
  3.2 M  /var/cache/yum/x86_64/7/myorg-elastic-7.x
5.3 M  untracked repos:
  3.9 M  /var/cache/yum/x86_64/7/myorg-puppet5
  700 k  /var/cache/yum/x86_64/7/mysql80-community
  376 k  /var/cache/yum/x86_64/7/mysql-connectors-community
  340 k  /var/cache/yum/x86_64/7/mysql-tools-community
4.0 k  other data:
  4.0 k  /var/cache/yum/x86_64/7/timedhosts
13 M   total

I manually removed the /var/cache/yum/x86_64/7/mysql* folders and then tried the sudo yum install -y mysql-server and that did the trick.