title: How can I completely remove MySQL 8 from Redhat Linux so I can install MySQL 5?
body: <p>I am trying to install MySQL 5 on a machine where there was a previous (unsuccessful) attempt to install MySQL 8.</p>
  
  <p>I installed the repo for MySQL 5:</p>
  
  <pre><code>yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
  </code></pre>
  
  <p>I then ran:</p>
  
  <pre><code>yum install mysql-community-server
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>How to fix this?</p>
  
  <p>If I run...</p>
  
  <pre><code>yum remove mysql mysql-server
  </code></pre>
  
  <p>I get...</p>
  
  <pre><code>No Match for argument: mysql
  No Match for argument: mysql-server
  No Packages marked for removal
  </code></pre>