Post List

2016년 11월 3일 목요일

CentOS7에서 yum 으로 설치 된 Mariadb 삭제 하기.

1. yum으로 패키지를 조회 해 보자.

[root@binrang-db ~]# yum list mariadb
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.oasis.onnetcorp.com
 * extras: mirror.oasis.onnetcorp.com
 * updates: mirror.oasis.onnetcorp.com
Installed Packages
mariadb.x86_64                                           1:5.5.50-1.el7_2                                           @updates
[root@binrang-db ~]# 



2. yum 을 이용하여 패키지를 삭제한다.

[root@binrang-db ~]# yum remove mariadb.*
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package mariadb.x86_64 1:5.5.50-1.el7_2 will be erased
--> Processing Dependency: mariadb(x86-64) = 1:5.5.50-1.el7_2 for package: 1:mariadb-server-5.5.50-1.el7_2.x86_64
--> Running transaction check
---> Package mariadb-server.x86_64 1:5.5.50-1.el7_2 will be erased
--> Processing Dependency: mariadb-server for package: akonadi-mysql-1.9.2-4.el7.x86_64
--> Running transaction check
---> Package akonadi-mysql.x86_64 0:1.9.2-4.el7 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================
 Package                         Arch                    Version                           Repository                  Size
============================================================================================================================
Removing:
 mariadb                         x86_64                  1:5.5.50-1.el7_2                  @updates                    49 M
Removing for dependencies:
 akonadi-mysql                   x86_64                  1.9.2-4.el7                       @anaconda                  9.6 k
 mariadb-server                  x86_64                  1:5.5.50-1.el7_2                  @updates                    56 M
Transaction Summary
============================================================================================================================
Remove  1 Package (+2 Dependent packages)
Installed size: 104 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : akonadi-mysql-1.9.2-4.el7.x86_64                                                                         1/3 
  Erasing    : 1:mariadb-server-5.5.50-1.el7_2.x86_64                                                                   2/3 
  Erasing    : 1:mariadb-5.5.50-1.el7_2.x86_64                                                                          3/3 
  Verifying  : akonadi-mysql-1.9.2-4.el7.x86_64                                                                         1/3 
  Verifying  : 1:mariadb-5.5.50-1.el7_2.x86_64                                                                          2/3 
  Verifying  : 1:mariadb-server-5.5.50-1.el7_2.x86_64                                                                   3/3 
Removed:
  mariadb.x86_64 1:5.5.50-1.el7_2                                                                                           
Dependency Removed:
  akonadi-mysql.x86_64 0:1.9.2-4.el7                         mariadb-server.x86_64 1:5.5.50-1.el7_2                        
Complete!
[root@binrang-db ~]# 

3. mysql 에 대하여 실행 해 보자.

[root@binrang-db ~]# mysql
-bash: /bin/mysql: 그런 파일이나 디렉터리가 없습니다
[root@binrang-db ~]# 


이제 삭제가 완료 되었다.