"YUM MariaDB 저장소 추가"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
(사용자 3명의 중간 판 7개는 보이지 않습니다)
4번째 줄: 4번째 줄:


==확인==
==확인==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# yum repolist
[root@zetawiki ~]# yum repolist
repo id                                  repo name                                            status
repo id                                  repo name                                            status
11번째 줄: 11번째 줄:
updates                                  CentOS-5 - Updates                                      98
updates                                  CentOS-5 - Updates                                      98
repolist: 4,025
repolist: 4,025
</source>
</syntaxhighlight>


==저장소 추가==
==저장소 추가==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# vi /etc/yum.repos.d/MariaDB.repo
[root@zetawiki ~]# vi /etc/yum.repos.d/MariaDB.repo
</source>
</syntaxhighlight>
<source lang='bash'>
<syntaxhighlight lang='ini'>
[mariadb]
[mariadb]
name = MariaDB
name = MariaDB
23번째 줄: 23번째 줄:
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
gpgcheck=1
</source>
</syntaxhighlight>
:→ 위의 baseurl는 CentOS6 64비트 기준임
:→ 위의 baseurl는 CentOS6 64비트 기준임
:→ http://yum.mariadb.org/ 참고하여 수정
:→ http://yum.mariadb.org/ 참고하여 수정
:→ ( CentOS, Fedora, RHEL 따로 있음 )
:→ ( CentOS, Fedora, RHEL 따로 있음 )


<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# cat /etc/yum.repos.d/MariaDB.repo
[root@zetawiki ~]# cat /etc/yum.repos.d/MariaDB.repo
[mariadb]
[mariadb]
name = MariaDB
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos$releasever-x86
baseurl = http://yum.mariadb.org/10.1/centos6-amd64
gpgcheck=0
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
</source>
gpgcheck=1
</syntaxhighlight>


==확인 2==
==확인 2==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# yum repolist
[root@zetawiki ~]# yum repolist
... (생략)
... (생략)
repo id                                   repo name                                             status
repo id               repo name                                                     status
base                                     CentOS-5 - Base                                       3,662
base                   CentOS-6 - Base                                               6,696
extras                                   CentOS-5 - Extras                                       265
epel                  Extra Packages for Enterprise Linux 6 - x86_64                12,264
mariadb                                   MariaDB                                                   9
extras                 CentOS-6 - Extras                                                 62
updates                                   CentOS-5 - Updates                                       98
mariadb               MariaDB                                                           17
repolist: 4,034
updates               CentOS-6 - Updates                                               540
</source>
repolist: 19,579
</syntaxhighlight>
:→ MariaDB 저장소가 추가되었다.
:→ MariaDB 저장소가 추가되었다.


==(제거)==
==(제거)==
필요시 MariaDB.repo 파일만 지우면 저장소가 제거된다.
필요시 MariaDB.repo 파일만 지우면 저장소가 제거된다.
<source lang='bash'>
<syntaxhighlight lang='bash'>
rm -f /etc/yum.repos.d/MariaDB.repo
rm -f /etc/yum.repos.d/MariaDB.repo
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
59번째 줄: 61번째 줄:
*[[YUM MySQL커뮤니티 저장소 추가]]
*[[YUM MySQL커뮤니티 저장소 추가]]


==참고 자료==
==참고==
*https://mariadb.com/kb/en/installing-mariadb-with-yum/
*https://mariadb.com/kb/en/installing-mariadb-with-yum/


[[분류: Yum 저장소]]
[[분류: Yum 저장소]]

2021년 12월 9일 (목) 02:00 기준 최신판

Yum MariaDB 저장소 추가
MariaDB.repo 설정
/etc/yum.repos.d/MariaDB.repo

1 확인[ | ]

[root@zetawiki ~]# yum repolist
repo id                                   repo name                                             status
base                                      CentOS-5 - Base                                       3,662
extras                                    CentOS-5 - Extras                                       265
updates                                   CentOS-5 - Updates                                       98
repolist: 4,025

2 저장소 추가[ | ]

[root@zetawiki ~]# vi /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
→ 위의 baseurl는 CentOS6 64비트 기준임
http://yum.mariadb.org/ 참고하여 수정
→ ( CentOS, Fedora, RHEL 따로 있음 )
[root@zetawiki ~]# cat /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

3 확인 2[ | ]

[root@zetawiki ~]# yum repolist
... (생략)
repo id                repo name                                                     status
base                   CentOS-6 - Base                                                6,696
epel                   Extra Packages for Enterprise Linux 6 - x86_64                12,264
extras                 CentOS-6 - Extras                                                 62
mariadb                MariaDB                                                           17
updates                CentOS-6 - Updates                                               540
repolist: 19,579
→ MariaDB 저장소가 추가되었다.

4 (제거)[ | ]

필요시 MariaDB.repo 파일만 지우면 저장소가 제거된다.

rm -f /etc/yum.repos.d/MariaDB.repo

5 같이 보기[ | ]

6 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}