DBA

개인 학습, 작업 기록용입니다. 올바르지 않은 정보가 있다면 댓글주시면 감사하겠습니다!

DATABASE/Mysql MariaDB

[MariaDB] CentOS MariaDB 설치 Requires: pv 에러 발생

DBnA 2024. 1. 19. 11:35
yum install epel-release

MariaDB 설치 진행 중 에러 발생

 

MariaDB의 10.11 repo를 생성 후 yum 통해 설치 진행

yum install MariaDB-server MariaDB-client

 

트랜잭션 체크하고 쭉쭉 진행하다가 Requires: pv  오류 만남

 

 

해결방법 1 

yum clean metadata
yum update clean all
yum update

###내용확인용
[root@dbteam01 ~]#  yum update
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.kakao.com
 * extras: mirror.kakao.com
 * updates: mirror.kakao.com
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-compat.x86_64 0:10.11.6-1.el7.centos will be obsoleting
--> Processing Dependency: MariaDB-common for package: MariaDB-compat-10.11.6-1.el7.centos.x86_64
---> Package mariadb-libs.x86_64 1:5.5.68-1.el7 will be obsoleted
--> Running transaction check
---> Package MariaDB-common.x86_64 0:10.11.6-1.el7.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                              Arch                                         Version                                                     Repository                                     Size
===================================================================================================================================================================================================================
Installing:
 MariaDB-compat                                       x86_64                                       10.11.6-1.el7.centos                                        mariadb                                       2.2 M
     replacing  mariadb-libs.x86_64 1:5.5.68-1.el7
Installing for dependencies:
 MariaDB-common                                       x86_64                                       10.11.6-1.el7.centos                                        mariadb                                        82 k

Transaction Summary
===================================================================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 2.2 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): MariaDB-common-10.11.6-1.el7.centos.x86_64.rpm                                                                                                                                       |  82 kB  00:00:00
(2/2): MariaDB-compat-10.11.6-1.el7.centos.x86_64.rpm                                                                                                                                       | 2.2 MB  00:00:01
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                              1.9 MB/s | 2.2 MB  00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : MariaDB-compat-10.11.6-1.el7.centos.x86_64                                                                                                                                                      1/3
  Installing : MariaDB-common-10.11.6-1.el7.centos.x86_64                                                                                                                                                      2/3
  Erasing    : 1:mariadb-libs-5.5.68-1.el7.x86_64                                                                                                                                                              3/3
  Verifying  : MariaDB-common-10.11.6-1.el7.centos.x86_64                                                                                                                                                      1/3
  Verifying  : MariaDB-compat-10.11.6-1.el7.centos.x86_64                                                                                                                                                      2/3
  Verifying  : 1:mariadb-libs-5.5.68-1.el7.x86_64                                                                                                                                                              3/3

Installed:
  MariaDB-compat.x86_64 0:10.11.6-1.el7.centos

Dependency Installed:
  MariaDB-common.x86_64 0:10.11.6-1.el7.centos

Replaced:
  mariadb-libs.x86_64 1:5.5.68-1.el7

Complete!

 

제 경우는 1번 진행 후 재설치시 동일한 현상이 나타났습니다.

 

 

해결 방법 2

yum install epel-release

 

epel-release 설치 후 MariaDB 재 설치

 

*epel (Extra Packages for Enterprise Linux)

yum의 확장된 최신 저장소로 기본 저장소에 없는 패키지들 존재 

 

#마리아DB 설치 
[root@dbteam01 ~]# yum install MariaDB-server MariaDB-client

#패키지 설치 확인
[root@dbteam01 ~]# yum list installed *Maria*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.kakao.com
 * epel: mirror-nrt.yuki.net.uk
 * extras: mirror.kakao.com
 * updates: mirror.kakao.com
Installed Packages
MariaDB-client.x86_64                                                                                 10.11.6-1.el7.centos                                                                                 @mariadb
MariaDB-common.x86_64                                                                                 10.11.6-1.el7.centos                                                                                 @mariadb
MariaDB-compat.x86_64                                                                                 10.11.6-1.el7.centos                                                                                 @mariadb
MariaDB-server.x86_64                                                                                 10.11.6-1.el7.centos                                                                                 @mariadb

#마리아 버전확인
[root@dbteam01 ~]# mariadb -V
mariadb  Ver 15.1 Distrib 10.11.6-MariaDB, for Linux (x86_64) using readline 5.1

 

 

2번방법으로 해결 완료

 

 

출처

[Linux] CentOS MariaDB 설치 시 에러발생 시 해결방법 (velog.io)

CentOS Maria DB 설치 (tistory.com)