[root@zyf ~]# rpm -qa|grep -i mysql
mysql-community-libs-5.6.34-2.el7.x86_64
mysql-community-server-5.6.34-2.el7.x86_64
mysql-community-release-el7-5.noarch
mysql-community-common-5.6.34-2.el7.x86_64
mysql-community-client-5.6.34-2.el7.x86_64
[root@zyf~]# yumremove mysql
Loaded plugins: fastestmirror
Resolving Dependencies-->Running transaction check---> Package mysql-community-client.x86_64 0:5.6.34-2.el7 will be erased--> Processing Dependency: mysql-community-client(x86-64) >= 5.6.10 for package: mysql-community-server-5.6.34-2.el7.x86_64-->Running transaction check---> Package mysql-community-server.x86_64 0:5.6.34-2.el7 will be erased-->Finished Dependency Resolution
Dependencies Resolved============================================================================================================================================================================================================Package Arch Version Repository Size============================================================================================================================================================================================================Removing:
mysql-community-client x86_64 5.6.34-2.el7 @mysql56-community 89M
Removingfordependencies:
mysql-community-server x86_64 5.6.34-2.el7 @mysql56-community 249M
Transaction Summary============================================================================================================================================================================================================Remove1 Package (+1Dependent package)
Installed size:337M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : mysql-community-server-5.6.34-2.el7.x86_64 1/2Erasing : mysql-community-client-5.6.34-2.el7.x86_64 2/2Verifying : mysql-community-server-5.6.34-2.el7.x86_64 1/2Verifying : mysql-community-client-5.6.34-2.el7.x86_64 2/2Removed:
mysql-community-client.x86_64 0:5.6.34-2.el7
Dependency Removed:
mysql-community-server.x86_64 0:5.6.34-2.el7
Complete![root@zyf~]# rpm -qa|grep -i mysql
mysql-community-libs-5.6.34-2.el7.x86_64
mysql-community-release-el7-5.noarch
mysql-community-common-5.6.34-2.el7.x86_64
[root@zyf~]# yum remove mysql-community-libs-5.6.34-2.el7.x86_64
Loaded plugins: fastestmirror
Resolving Dependencies-->Running transaction check---> Package mysql-community-libs.x86_64 0:5.6.34-2.el7 will be erased--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64-->Running transaction check---> Package postfix.x86_64 2:2.10.1-6.el7 will be erased-->Finished Dependency Resolution
Dependencies Resolved============================================================================================================================================================================================================Package Arch Version Repository Size============================================================================================================================================================================================================Removing:
mysql-community-libs x86_64 5.6.34-2.el7 @mysql56-community 9.2M
Removingfordependencies:
postfix x86_642:2.10.1-6.el7 @anaconda 12M
Transaction Summary============================================================================================================================================================================================================Remove1 Package (+1Dependent package)
Installed size:21M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing :2:postfix-2.10.1-6.el7.x86_64 1/2Erasing : mysql-community-libs-5.6.34-2.el7.x86_64 2/2Verifying :2:postfix-2.10.1-6.el7.x86_64 1/2Verifying : mysql-community-libs-5.6.34-2.el7.x86_64 2/2Removed:
mysql-community-libs.x86_64 0:5.6.34-2.el7
Dependency Removed:
postfix.x86_642:2.10.1-6.el7
Complete![root@zyf~]# yum remove -y mysql-community-release-el7-5.noarch
Loaded plugins: fastestmirror
Resolving Dependencies-->Running transaction check---> Package mysql-community-release.noarch 0:el7-5will be erased-->Finished Dependency Resolution
Dependencies Resolved============================================================================================================================================================================================================Package Arch Version Repository Size============================================================================================================================================================================================================Removing:
mysql-community-release noarch el7-5 installed 4.3k
Transaction Summary============================================================================================================================================================================================================Remove1Package
Installed size:4.3k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : mysql-community-release-el7-5.noarch 1/1Verifying : mysql-community-release-el7-5.noarch 1/1Removed:
mysql-community-release.noarch 0:el7-5Complete![root@zyf~]# yum remove -y mysql-community-common-5.6.34-2.el7.x86_64
Loaded plugins: fastestmirror
Resolving Dependencies-->Running transaction check---> Package mysql-community-common.x86_64 0:5.6.34-2.el7 will be erased-->Finished Dependency Resolution
Dependencies Resolved============================================================================================================================================================================================================Package Arch Version Repository Size============================================================================================================================================================================================================Removing:
mysql-community-common x86_64 5.6.34-2.el7 @mysql56-community 2.1M
Transaction Summary============================================================================================================================================================================================================Remove1Package
Installed size:2.1M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : mysql-community-common-5.6.34-2.el7.x86_64 1/1Verifying : mysql-community-common-5.6.34-2.el7.x86_64 1/1Removed:
mysql-community-common.x86_64 0:5.6.34-2.el7
Complete![root@zyf~]# rpm -qa|grep -i mysql
[root@zyf~]#