我怎样才能从 Redhat Linux 中完全删除 MySQL 8,以便我可以安装 MySQL 5?

How can I completely remove MySQL 8 from Redhat Linux so I can install MySQL 5?

我正在尝试在一台机器上安装 MySQL 5,之前曾尝试(未成功)安装 MySQL 8。

我为 MySQL 5:

安装了 repo
yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm

然后我运行:

yum install mysql-community-server

我得到:

Error: Package: mysql-community-server-5.7.28-1.el7.x86_64 (mysql57-community)
           Requires: mysql-community-common(x86-64) = 5.7.28-1.el7
           Installed: mysql-community-common-8.0.18-1.el7.x86_64 (@mysql80-community)
               mysql-community-common(x86-64) = 8.0.18-1.el7

如何解决这个问题?

如果我运行...

yum remove mysql mysql-server

我明白了……

No Match for argument: mysql
No Match for argument: mysql-server
No Packages marked for removal

我需要像这样删除旧的 repo...

yum remove mysql-community-common-8.0.18-1.el7.x86_64