"Yum Daum 저장소 설정"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-== 참고 자료 == +==참고==))
잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(사용자 2명의 중간 판 3개는 보이지 않습니다)
10번째 줄: 10번째 줄:
==기존 저장소 압축 보존==
==기존 저장소 압축 보존==
;명령어
;명령어
<source lang='bash'>
<syntaxhighlight lang='bash'>
bzip2 /etc/yum.repos.d/CentOS-*.repo
bzip2 /etc/yum.repos.d/CentOS-*.repo
yum repolist
yum repolist
</source>
</syntaxhighlight>


;실행예시
;실행예시
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# ll /etc/yum.repos.d/
[root@zetawiki ~]# ll /etc/yum.repos.d/
total 16
total 16
23번째 줄: 23번째 줄:
-rw-r--r--. 1 root root  626 Jun 26  2012 CentOS-Media.repo
-rw-r--r--. 1 root root  626 Jun 26  2012 CentOS-Media.repo
-rw-r--r--. 1 root root 2593 Jun 26  2012 CentOS-Vault.repo
-rw-r--r--. 1 root root 2593 Jun 26  2012 CentOS-Vault.repo
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# yum repolist
[root@zetawiki ~]# yum repolist
... (생략)
... (생략)
32번째 줄: 32번째 줄:
updates                            CentOS-6 - Updates                              1,555
updates                            CentOS-6 - Updates                              1,555
repolist: 7,949
repolist: 7,949
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# bzip2 /etc/yum.repos.d/CentOS-*.repo
[root@zetawiki ~]# bzip2 /etc/yum.repos.d/CentOS-*.repo
[root@zetawiki ~]# ll /etc/yum.repos.d/
[root@zetawiki ~]# ll /etc/yum.repos.d/
41번째 줄: 41번째 줄:
-rw-r--r--. 1 root root 414 Jun 26  2012 CentOS-Media.repo.bz2
-rw-r--r--. 1 root root 414 Jun 26  2012 CentOS-Media.repo.bz2
-rw-r--r--. 1 root root 409 Jun 26  2012 CentOS-Vault.repo.bz2
-rw-r--r--. 1 root root 409 Jun 26  2012 CentOS-Vault.repo.bz2
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# yum repolist
[root@zetawiki ~]# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Loading mirror speeds from cached hostfile
repolist: 0
repolist: 0
</source>
</syntaxhighlight>
:→ 확장자가 repo인 파일이 없어서 repolist도 0이 되었다.
:→ 확장자가 repo인 파일이 없어서 repolist도 0이 되었다.


54번째 줄: 54번째 줄:


;명령어
;명령어
<source lang='bash'>
<syntaxhighlight lang='bash'>
echo '[base]
echo '[base]
name=CentOS-$releasever - Base
name=CentOS-$releasever - Base
baseurl=http://ftp.daum.net/centos/$releasever/os/$basearch/
baseurl=http://ftp.daumkakao.com/centos/$releasever/os/$basearch/
gpgcheck=0  
gpgcheck=0  
[updates]
[updates]
name=CentOS-$releasever - Updates
name=CentOS-$releasever - Updates
baseurl=http://ftp.daum.net/centos/$releasever/updates/$basearch/
baseurl=http://ftp.daumkakao.com/centos/$releasever/updates/$basearch/
gpgcheck=0
gpgcheck=0
[extras]
[extras]
name=CentOS-$releasever - Extras
name=CentOS-$releasever - Extras
baseurl=http://ftp.daum.net/centos/$releasever/extras/$basearch/
baseurl=http://ftp.daumkakao.com/centos/$releasever/extras/$basearch/
gpgcheck=0' > /etc/yum.repos.d/Daum.repo
gpgcheck=0' > /etc/yum.repos.d/Daum.repo
yum repolist
yum repolist
</source>
</syntaxhighlight>


;실행예시
;실행예시
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# echo '[base]
[root@zetawiki ~]# echo '[base]
> name=CentOS-$releasever - Base
> name=CentOS-$releasever - Base
> baseurl=http://ftp.daum.net/centos/$releasever/os/$basearch/
> baseurl=http://ftp.daumkakao.com/centos/$releasever/os/$basearch/
> gpgcheck=0  
> gpgcheck=0  
> [updates]
> [updates]
> name=CentOS-$releasever - Updates
> name=CentOS-$releasever - Updates
> baseurl=http://ftp.daum.net/centos/$releasever/updates/$basearch/
> baseurl=http://ftp.daumkakao.com/centos/$releasever/updates/$basearch/
> gpgcheck=0
> gpgcheck=0
> [extras]
> [extras]
> name=CentOS-$releasever - Extras
> name=CentOS-$releasever - Extras
> baseurl=http://ftp.daum.net/centos/$releasever/extras/$basearch/
> baseurl=http://ftp.daumkakao.com/centos/$releasever/extras/$basearch/
> gpgcheck=0' > /etc/yum.repos.d/Daum.repo
> gpgcheck=0' > /etc/yum.repos.d/Daum.repo
[root@zetawiki ~]# yum repolist
[root@zetawiki ~]# yum repolist
91번째 줄: 91번째 줄:
updates                                CentOS-6 - Updates                          1,555
updates                                CentOS-6 - Updates                          1,555
repolist: 7,949
repolist: 7,949
</source>
</syntaxhighlight>


==(원상복구)==
==(원상복구)==
98번째 줄: 98번째 줄:


;명령어
;명령어
<source lang='bash'>
<syntaxhighlight lang='bash'>
rm -f /etc/yum.repos.d/Daum.repo
rm -f /etc/yum.repos.d/Daum.repo
bunzip2 /etc/yum.repos.d/CentOS-*
bunzip2 /etc/yum.repos.d/CentOS-*
yum repolist
yum repolist
</source>
</syntaxhighlight>


;실행예시
;실행예시
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# rm -f /etc/yum.repos.d/Daum.repo
[root@zetawiki ~]# rm -f /etc/yum.repos.d/Daum.repo
[root@zetawiki ~]# bunzip2 /etc/yum.repos.d/CentOS-*
[root@zetawiki ~]# bunzip2 /etc/yum.repos.d/CentOS-*
115번째 줄: 115번째 줄:
updates                            CentOS-6 - Updates                              1,555
updates                            CentOS-6 - Updates                              1,555
repolist: 7,949
repolist: 7,949
</source>
</syntaxhighlight>
:→ 최초 상태로 돌아왔다.
:→ 최초 상태로 돌아왔다.



2020년 11월 2일 (월) 00:56 기준 최신판

1 개요[ | ]

CentOS-Base.repo를 Daum 저장소로 변경
yum 저장소 Daum으로 변경
yum 리파지토리 Daum으로
yum서버를 daum으로 바꾸기
/etc/yum.repos.d/Daum.repo
  • base와 동일하므로 특별히 바꿀 필요는 없으나, 한국에서 사용시 전송속도가 빠르다.

2 기존 저장소 압축 보존[ | ]

명령어
bzip2 /etc/yum.repos.d/CentOS-*.repo
yum repolist
실행예시
[root@zetawiki ~]# ll /etc/yum.repos.d/
total 16
-rw-r--r--. 1 root root 1926 Jun 26  2012 CentOS-Base.repo
-rw-r--r--. 1 root root  637 Jun 26  2012 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root  626 Jun 26  2012 CentOS-Media.repo
-rw-r--r--. 1 root root 2593 Jun 26  2012 CentOS-Vault.repo
[root@zetawiki ~]# yum repolist
... (생략)
repo id                             repo name                                       status
base                                CentOS-6 - Base                                 6,381
extras                              CentOS-6 - Extras                                  13
updates                             CentOS-6 - Updates                              1,555
repolist: 7,949
[root@zetawiki ~]# bzip2 /etc/yum.repos.d/CentOS-*.repo
[root@zetawiki ~]# ll /etc/yum.repos.d/
total 16
-rw-r--r--. 1 root root 682 Jun 26  2012 CentOS-Base.repo.bz2
-rw-r--r--. 1 root root 442 Jun 26  2012 CentOS-Debuginfo.repo.bz2
-rw-r--r--. 1 root root 414 Jun 26  2012 CentOS-Media.repo.bz2
-rw-r--r--. 1 root root 409 Jun 26  2012 CentOS-Vault.repo.bz2
[root@zetawiki ~]# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
repolist: 0
→ 확장자가 repo인 파일이 없어서 repolist도 0이 되었다.

3 Daum.repo 파일 생성[ | ]

/etc/yum.repos.d/ 폴더에 Daum.repo 파일을 만든다.

명령어
echo '[base]
name=CentOS-$releasever - Base
baseurl=http://ftp.daumkakao.com/centos/$releasever/os/$basearch/
gpgcheck=0 
[updates]
name=CentOS-$releasever - Updates
baseurl=http://ftp.daumkakao.com/centos/$releasever/updates/$basearch/
gpgcheck=0
[extras]
name=CentOS-$releasever - Extras
baseurl=http://ftp.daumkakao.com/centos/$releasever/extras/$basearch/
gpgcheck=0' > /etc/yum.repos.d/Daum.repo
yum repolist
실행예시
[root@zetawiki ~]# echo '[base]
> name=CentOS-$releasever - Base
> baseurl=http://ftp.daumkakao.com/centos/$releasever/os/$basearch/
> gpgcheck=0 
> [updates]
> name=CentOS-$releasever - Updates
> baseurl=http://ftp.daumkakao.com/centos/$releasever/updates/$basearch/
> gpgcheck=0
> [extras]
> name=CentOS-$releasever - Extras
> baseurl=http://ftp.daumkakao.com/centos/$releasever/extras/$basearch/
> gpgcheck=0' > /etc/yum.repos.d/Daum.repo
[root@zetawiki ~]# yum repolist
... (생략)
repo id                                repo name                                    status
base                                   CentOS-6 - Base                              6,381
extras                                 CentOS-6 - Extras                               13
updates                                CentOS-6 - Updates                           1,555
repolist: 7,949

4 (원상복구)[ | ]

Daum repo 대신 CentOS 기본 저장소를 사용하고 싶을 경우도 있을 것이다.[1] Daum.repo 파일을 삭제하고 CentOS repo파일들을 복원하자.

명령어
rm -f /etc/yum.repos.d/Daum.repo
bunzip2 /etc/yum.repos.d/CentOS-*
yum repolist
실행예시
[root@zetawiki ~]# rm -f /etc/yum.repos.d/Daum.repo
[root@zetawiki ~]# bunzip2 /etc/yum.repos.d/CentOS-*
[root@zetawiki ~]# yum repolist
... (생략)
repo id                             repo name                                       status
base                                CentOS-6 - Base                                 6,381
extras                              CentOS-6 - Extras                                  13
updates                             CentOS-6 - Updates                              1,555
repolist: 7,949
→ 최초 상태로 돌아왔다.

5 같이 보기[ | ]

6 주석[ | ]

  1. 아마 없을거다 …

7 참고[ | ]

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