본문 바로가기
카테고리 없음

🥰 yum 국내 저장소 설정

by Knowledge Store In Hyunsoft 2017. 9. 16.

 

 

  • yum  국내 저장소 설정

 

cd /etc/yum.repos.d/

vi CentOS-Base.repo

 

 

[base]

name=CentOS-$releasever - Base

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

baseurl=http://centos.mirror.cdnetworks.com/$releasever/os/$basearch

gpgcheck=1

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

 

#released updates

[updates]

name=CentOS-$releasever - Updates

#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates

baseurl=http://centos.mirror.cdnetworks.com/$releasever/updates/$basearch

gpgcheck=1

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful

 

[extras]

name=CentOS-$releasever - Extras

baseurl=http://centos.mirror.cdnetworks.com/$releasever/extras/$basearch

gpgcheck=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

 

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-$releasever - Plus

baseurl=http://centos.mirror.cdnetworks.com/$releasever/centosplus/$basearch

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

 

#contrib - packages by Centos Users

[contrib]

name=CentOS-$releasever - Contrib

baseurl=http://centos.mirror.cdnetworks.com/$releasever/contrib/$basearch

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

 

 

728x90

댓글