반응형
CentOS 7 Yum Repository 서버에 MariaDB Repository를 추가하는 방법
테스트 환경
$ cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
MariaDB Repository 추가
- MariaDB Repositories : https://mariadb.org/download/?t=repo-config
- MariaDB Repository 설정 파일 추가(MariaDB.repo 저장소 추가)
vim /etc/yum.repos.d/MariaDB.repo
- Repository 정보 입력
- 이 설정 파일은 MariaDB의 공식 미러를 사용합니다.
# MariaDB 10.8 CentOS repository list - created 2022-12-09 11:34 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
baseurl = https://mirror.rackspace.com/mariadb/yum/10.8/centos7-amd64
gpgkey=https://mirror.rackspace.com/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1
yum repolist mariadb
sed -i 's/10.8/10.11/' /etc/yum.repos.d/MariaDB.repo
- GPG 키 가져오기
- MariaDB Repository의 패키지들은 GPG 서명이 되어 있으므로, GPG 키를 가져와서 Yum이 검증할 수 있도록 해야 합니다.
sudo rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
- Yum 캐시 정리
- 새로운 Repository를 추가했으므로 Yum 캐시를 정리합니다.
sudo rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
- MariaDB-server, MariaDB-client 설치
yum install -y MariaDB-server MariaDB-client
728x90
mysql repository 추가
- MySQL Community Downloads : https://dev.mysql.com/downloads/mysql/
yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm
- mysql-community.repo 추가
vim /etc/yum.repos.d/mysql-community.repo
# Enable to use MySQL 5.7
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql80-community]
name=MySQL 8.0 Community Server
baseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/7/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql-tools-community]
name=MySQL Tools Community
baseurl=http://repo.mysql.com/yum/mysql-tools-community/el/7/$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql-tools-preview]
name=MySQL Tools Preview
baseurl=http://repo.mysql.com/yum/mysql-tools-preview/el/7/$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql-cluster-7.5-community]
name=MySQL Cluster 7.5 Community
baseurl=http://repo.mysql.com/yum/mysql-cluster-7.5-community/el/7/$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql-cluster-7.6-community]
name=MySQL Cluster 7.6 Community
baseurl=http://repo.mysql.com/yum/mysql-cluster-7.6-community/el/7/$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql-cluster-8.0-community]
name=MySQL Cluster 8.0 Community
baseurl=http://repo.mysql.com/yum/mysql-cluster-8.0-community/el/7/$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
- mysql-server 설치
yum install -y mysql-server
728x90
반응형
'리눅스' 카테고리의 다른 글
[리눅스] PHP 수호신(Suhosin) 설치 (0) | 2015.07.24 |
---|---|
[리눅스] iTop(itsm) 설치하기 (0) | 2015.07.19 |
ipcalc 명령어 (0) | 2015.06.30 |
systemd 명령어 (0) | 2015.06.30 |
CentOS 7에서 기본 저장소를 변경하는 방법 (0) | 2015.05.08 |