StoryCode

redhat.yum daum repo, centos repo 설정

Server 관리/Linux
반응형

RHEL 은 레드햇 상용 리눅스라, 유료 입력키가 없으면 레드햇 Repo (yum) 사용 불가 .

 

cd /etc/yum.repos.d/

 

 

 

 

vi centos.repo

[base]

name=CentOS-$releasever - Base

baseurl=http://centos.mirror.cdnetworks.com/6/os/x86_64/

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

 

[updates]
name=CentOS-$releasever - Updates
baseurl=http://centos.mirror.cdnetworks.com/6/updates/x86_64/

gpgcheck=l


[extras]

name=CentOS-$releasever - Extras

baseurl=http://centos.mirror.cdnetworks.com/6/extras/x86_64/

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

 

> rpm --import http://centos.mirror.cdnetworks.com/6/os/x86_64/RPM-GPG-KEY-CentOS-6

 

 

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

 

 

> yum repolist 로 확인

 

반응형