리눅스

Total 331
Today 0
profile_image
슈퍼아이피
17-11-20 10:33 0개 17회
일반문서
CentOS7 / RHEL7 에서 Daum yum repository 설정

CentOS7 / RHEL7 에서 Daum yum repository 설정방법


 


// daum.repo 파일 생성

// 아래 경로에서 daum.repo만 남겨놓고 모두 삭제하고 진행해야 한다.


root]# cd /etc/yum.repos.d


root]# vi daum.repo


[base]

name=CentOS-$releasever - Base

baseurl=http://ftp.daum.net/centos/7/os/$basearch/

gpgcheck=1

gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7

 

[updates]

name=CentOS-$releasever - Updates

baseurl=http://ftp.daum.net/centos/7/updates/$basearch/

gpgcheck=1

gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7

 

[extras]

name=CentOS-$releasever - Extras

baseurl=http://ftp.daum.net/centos/7/extras/$basearch/

gpgcheck=1

gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7

 

[centosplus]

name=CentOS-$releasever - Plus

baseurl=http://ftp.daum.net/centos/7/centosplus/$basearch/

gpgcheck=1

gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-7


 


 


// repo clear 후 로딩


// base, centosplus, extras, updates 가 출력되면 정상


// 위 리스트가 출력되지 않으면 daum.repo 만 남겨놓고 다른 repo는 삭제해보길 바람.


root]# yum clean all


...


Cleaning repos: base centosplus extras updates


Cleaning up everything


 


root]# ]# yum repolist all


base                                                                         | 3.6 kB  00:00:00    


centosplus                                                                   | 3.4 kB  00:00:00    


extras                                                                       | 3.4 kB  00:00:00    


updates                                                                      | 3.4 kB  00:00:00    


(1/5): base/x86_64/group_gz                                                  | 155 kB  00:00:00    


(2/5): extras/x86_64/primary_db                                              | 166 kB  00:00:00    


(3/5): base/x86_64/primary_db                                                | 5.3 MB  00:00:00    


(4/5): centosplus/x86_64/primary_db                                          | 4.1 MB  00:00:00    


(5/5): updates/x86_64/primary_db                                             | 9.1 MB  00:00:00    


repo id                                 repo name                                      status


base/x86_64                             CentOS-7Server - Base                          enabled: 9007


centosplus/x86_64                       CentOS-7Server - Plus                          enabled:  134


extras/x86_64                           CentOS-7Server - Extras                        enabled:  393


updates/x86_64                          CentOS-7Server - Updates                       enabled: 2560


repolist: 12094

댓글목록

등록된 댓글이 없습니다.