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

(공홈 repo 안내사이트)
태그: 되돌려진 기여
잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
(다른 사용자 한 명의 중간 판 하나는 보이지 않습니다)
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='ini'>
<syntaxhighlight lang='ini'>
[mariadb]
[mariadb]
name = MariaDB
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos6-amd64
baseurl = http://yum.mariadb.org/10.1/centos6-amd64
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비트 기준임
:→ https://downloads.mariadb.org/mariadb/repositories/ 참고하여 수정
:→ 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/10.2/centos6-amd64
baseurl = http://yum.mariadb.org/10.1/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
gpgcheck=1
</source>
</syntaxhighlight>


==확인 2==
==확인 2==
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# yum repolist
[root@zetawiki ~]# yum repolist
... (생략)
... (생략)
48번째 줄: 48번째 줄:
updates                CentOS-6 - Updates                                              540
updates                CentOS-6 - Updates                                              540
repolist: 19,579
repolist: 19,579
</source>
</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>


==같이 보기==
==같이 보기==

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 }}