centos7 卸载mysql

时间:2022-11-23 22:32:23
[root@zyf ~]# rpm -qa|grep -i mysql
mysql-community-libs-5.6.-.el7.x86_64
mysql-community-server-5.6.-.el7.x86_64
mysql-community-release-el7-.noarch
mysql-community-common-5.6.-.el7.x86_64
mysql-community-client-5.6.-.el7.x86_64
[root@zyf ~]# yum remove mysql
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-client.x86_64 :5.6.-.el7 will be erased
--> Processing Dependency: mysql-community-client(x86-) >= 5.6. for package: mysql-community-server-5.6.-.el7.x86_64
--> Running transaction check
---> Package mysql-community-server.x86_64 :5.6.-.el7 will be erased
--> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================================
Removing:
mysql-community-client x86_64 5.6.-.el7 @mysql56-community M
Removing for dependencies:
mysql-community-server x86_64 5.6.-.el7 @mysql56-community M Transaction Summary
============================================================================================================================================================================================================
Remove Package (+ Dependent package) Installed size: M
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.-.el7.x86_64 /
Erasing : mysql-community-client-5.6.-.el7.x86_64 /
Verifying : mysql-community-server-5.6.-.el7.x86_64 /
Verifying : mysql-community-client-5.6.-.el7.x86_64 / Removed:
mysql-community-client.x86_64 :5.6.-.el7 Dependency Removed:
mysql-community-server.x86_64 :5.6.-.el7 Complete!
[root@zyf ~]# rpm -qa|grep -i mysql
mysql-community-libs-5.6.-.el7.x86_64
mysql-community-release-el7-.noarch
mysql-community-common-5.6.-.el7.x86_64
[root@zyf ~]# yum remove mysql-community-libs-5.6.-.el7.x86_64
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-libs.x86_64 :5.6.-.el7 will be erased
--> Processing Dependency: libmysqlclient.so.()(64bit) for package: :postfix-2.10.-.el7.x86_64
--> Processing Dependency: libmysqlclient.so.(libmysqlclient_18)(64bit) for package: :postfix-2.10.-.el7.x86_64
--> Running transaction check
---> Package postfix.x86_64 :2.10.-.el7 will be erased
--> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================================
Removing:
mysql-community-libs x86_64 5.6.-.el7 @mysql56-community 9.2 M
Removing for dependencies:
postfix x86_64 :2.10.-.el7 @anaconda M Transaction Summary
============================================================================================================================================================================================================
Remove Package (+ Dependent package) Installed size: M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : :postfix-2.10.-.el7.x86_64 /
Erasing : mysql-community-libs-5.6.-.el7.x86_64 /
Verifying : :postfix-2.10.-.el7.x86_64 /
Verifying : mysql-community-libs-5.6.-.el7.x86_64 / Removed:
mysql-community-libs.x86_64 :5.6.-.el7 Dependency Removed:
postfix.x86_64 :2.10.-.el7 Complete!
[root@zyf ~]# yum remove -y mysql-community-release-el7-.noarch
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-release.noarch :el7- will be erased
--> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================================
Removing:
mysql-community-release noarch el7- installed 4.3 k Transaction Summary
============================================================================================================================================================================================================
Remove Package Installed size: 4.3 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : mysql-community-release-el7-.noarch /
Verifying : mysql-community-release-el7-.noarch / Removed:
mysql-community-release.noarch :el7- Complete!
[root@zyf ~]# yum remove -y mysql-community-common-5.6.-.el7.x86_64
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-common.x86_64 :5.6.-.el7 will be erased
--> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================================
Removing:
mysql-community-common x86_64 5.6.-.el7 @mysql56-community 2.1 M Transaction Summary
============================================================================================================================================================================================================
Remove Package Installed size: 2.1 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : mysql-community-common-5.6.-.el7.x86_64 /
Verifying : mysql-community-common-5.6.-.el7.x86_64 / Removed:
mysql-community-common.x86_64 :5.6.-.el7 Complete!
[root@zyf ~]# rpm -qa|grep -i mysql
[root@zyf ~]#