참고문서: https://change-words.tistory.com/entry/CentOS7-MYSQL삭제
# 설치된 mysql 리스트
$ yum list installed | grep mysql
mysql-community-common.x86_64 5.7.38-1.el7 @mysql57-community
mysql-community-libs.x86_64 5.7.38-1.el7 @mysql57-community
mysql-community-libs-compat.x86_64 5.7.38-1.el7 @mysql57-community
mysql57-community-release.noarch el7-11 installed
# myslq-commumity 버전 모두 삭제
$ sudo yum remove -y mysql-community-*
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-common.x86_64 0:5.7.38-1.el7 will be erased
---> Package mysql-community-libs.x86_64 0:5.7.38-1.el7 will be erased
남아있는 install 패키지 확인하고 삭제
$ yum list installed | grep mysql
mysql57-community-release.noarch el7-11 installed
$ sudo yum remove -y mysql57-community-*
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package mysql57-community-release.noarch 0:el7-11 will be erased
--> Finished Dependency Resolution
Dependencies Resolved