首页 > 代码库 > 【MySQL专辑】CentOS卸载MySQL的方法 yum remove xxx

【MySQL专辑】CentOS卸载MySQL的方法 yum remove xxx

[root@kypulo lampp]# rpm -qa|grep mysql

mysql-community-release-el6-5.noarch

mysql-community-client-5.6.20-4.el6.i686

mysql-community-libs-5.6.20-4.el6.i686

mysql-community-common-5.6.20-4.el6.i686

mysql-community-server-5.6.20-4.el6.i686

[root@kypulo lampp]# yum remove mysql

Loaded plugins: fastestmirror

Setting up Remove Process

Resolving Dependencies

There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.

The program yum-complete-transaction is found in the yum-utils package.

--> Running transaction check

---> Package mysql-community-client.i686 0:5.6.20-4.el6 will be erased

--> Processing Dependency: mysql-community-client(x86-32) = 5.6.20-4.el6 for package: mysql-community-server-5.6.20-4.el6.i686

--> Running transaction check

---> Package mysql-community-server.i686 0:5.6.20-4.el6 will be erased

--> Finished Dependency Resolution

base                                                     | 3.7 kB     00:00     

epel/metalink                                            |  13 kB     00:00     

epel                                                     | 4.4 kB     00:00     

epel/primary_db                                          | 5.2 MB     00:00     

extras                                                   | 3.3 kB     00:00     

mysql-connectors-community                               | 2.5 kB     00:00     

mysql-tools-community                                    | 2.5 kB     00:00     

mysql56-community                                        | 2.5 kB     00:00     

updates                                                  | 3.4 kB     00:00     

vz-base                                                  |  951 B     00:00     

vz-updates                                               |  951 B     00:00     


Dependencies Resolved


================================================================================

 Package                   Arch    Version          Repository             Size

================================================================================

Removing:

 mysql-community-client    i686    5.6.20-4.el6     @mysql56-community     71 M

Removing for dependencies:

 mysql-community-server    i686    5.6.20-4.el6     @mysql56-community    211 M


Transaction Summary

================================================================================

Remove        2 Package(s)


Installed size: 283 M

Is this ok [y/N]: y

Downloading Packages:

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Erasing    : mysql-community-server-5.6.20-4.el6.i686                     1/2 

  Erasing    : mysql-community-client-5.6.20-4.el6.i686                     2/2 

  Verifying  : mysql-community-server-5.6.20-4.el6.i686                     1/2 

  Verifying  : mysql-community-client-5.6.20-4.el6.i686                     2/2 


Removed:

  mysql-community-client.i686 0:5.6.20-4.el6                                    


Dependency Removed:

  mysql-community-server.i686 0:5.6.20-4.el6                                    


Complete!

[root@kypulo lampp]# rpm -qa|grep mysql

mysql-community-release-el6-5.noarch

mysql-community-libs-5.6.20-4.el6.i686

mysql-community-common-5.6.20-4.el6.i686

[root@kypulo lampp]# yum remove mysql-libs

Loaded plugins: fastestmirror

Setting up Remove Process

Resolving Dependencies

There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.

The program yum-complete-transaction is found in the yum-utils package.

--> Running transaction check

---> Package mysql-community-libs.i686 0:5.6.20-4.el6 will be erased

--> Finished Dependency Resolution


Dependencies Resolved


================================================================================

 Package                 Arch    Version            Repository             Size

================================================================================

Removing:

 mysql-community-libs    i686    5.6.20-4.el6       @mysql56-community    7.3 M


Transaction Summary

================================================================================

Remove        1 Package(s)


Installed size: 7.3 M

Is this ok [y/N]: y

Downloading Packages:

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Erasing    : mysql-community-libs-5.6.20-4.el6.i686                       1/1 

  Verifying  : mysql-community-libs-5.6.20-4.el6.i686                       1/1 


Removed:

  mysql-community-libs.i686 0:5.6.20-4.el6                                      


Complete!

[root@kypulo lampp]# rpm -qa|grep mysql

mysql-community-release-el6-5.noarch

mysql-community-common-5.6.20-4.el6.i686

[root@kypulo lampp]# yum remove mysql-common

Loaded plugins: fastestmirror

Setting up Remove Process

Resolving Dependencies

There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.

The program yum-complete-transaction is found in the yum-utils package.

--> Running transaction check

---> Package mysql-community-common.i686 0:5.6.20-4.el6 will be erased

--> Finished Dependency Resolution


Dependencies Resolved


================================================================================

 Package                   Arch    Version          Repository             Size

================================================================================

Removing:

 mysql-community-common    i686    5.6.20-4.el6     @mysql56-community    2.1 M


Transaction Summary

================================================================================

Remove        1 Package(s)


Installed size: 2.1 M

Is this ok [y/N]: y

Downloading Packages:

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Erasing    : mysql-community-common-5.6.20-4.el6.i686                     1/1 

  Verifying  : mysql-community-common-5.6.20-4.el6.i686                     1/1 


Removed:

  mysql-community-common.i686 0:5.6.20-4.el6                                    


Complete!

[root@kypulo lampp]# rpm -qa|grep mysql

mysql-community-release-el6-5.noarch

[root@kypulo lampp]# yum remove mysql-release

Loaded plugins: fastestmirror

Setting up Remove Process

No Match for argument: mysql-release

Loading mirror speeds from cached hostfile

 * base: mirrors.easynews.com

 * epel: mirrors.solfo.com

 * extras: mirror.hmc.edu

 * updates: repos.lax.quadranet.com

No Packages marked for removal

[root@kypulo lampp]# yum remove mysql-community

Loaded plugins: fastestmirror

Setting up Remove Process

No Match for argument: mysql-community

Loading mirror speeds from cached hostfile

 * base: mirrors.easynews.com

 * epel: mirror.prgmr.com

 * extras: mirror.hmc.edu

 * updates: repos.lax.quadranet.com

No Packages marked for removal

[root@kypulo lampp]# rpm -qa|grep mysql

mysql-community-release-el6-5.noarch

[root@kypulo lampp]# yum remove mysql-community-release-el6-5.noarch

Loaded plugins: fastestmirror

Setting up Remove Process

Resolving Dependencies

There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.

The program yum-complete-transaction is found in the yum-utils package.

--> Running transaction check

---> Package mysql-community-release.noarch 0:el6-5 will be erased

--> Finished Dependency Resolution


Dependencies Resolved


================================================================================

 Package                       Arch         Version       Repository       Size

================================================================================

Removing:

 mysql-community-release       noarch       el6-5         installed       4.3 k


Transaction Summary

================================================================================

Remove        1 Package(s)


Installed size: 4.3 k

Is this ok [y/N]: y

Downloading Packages:

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Erasing    : mysql-community-release-el6-5.noarch                         1/1 

  Verifying  : mysql-community-release-el6-5.noarch                         1/1 


Removed:

  mysql-community-release.noarch 0:el6-5                                        


Complete!


本文出自 “开普技术” 博客,请务必保留此出处http://kypulo.blog.51cto.com/9227739/1549840

【MySQL专辑】CentOS卸载MySQL的方法 yum remove xxx