본문 바로가기
Linux

CentOS 6 Yum repository update

by 씨엔아이소프트 2021. 10. 4.
반응형

 

CentOS6 지원 중단으로 업데이트가 안되는 경우가 발생한다.

 

기존의 CentOS6 업데이트를 사용할 수 있게 Repository 를 수정해야 한다.

 

아래와 같이 수정해보자

 

 

vi /etc/yum.repos.d/CentOS-Base.repo

 

http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
--> 수정 :  http://vault.centos.org/6.10/os/$basearch/

http://mirror.centos.org/centos/$releasever/updates/$basearch/
--> 수정 :  http://vault.centos.org/6.10/updates/$basearch/

http://mirror.centos.org/centos/$releasever/extras/$basearch/
--> 수정 : http://vault.centos.org/6.10/extras/$basearch/

http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
--> 수정 : http://vault.centos.org/6.10/centosplus/$basearch/

http://mirror.centos.org/centos/$releasever/contrib/$basearch/
--> 수정 : http://vault.centos.org/6.10/contrib/$basearch/


epel 을 기존에 설치되어 있는경우

vi /etc/yum.repos.d/epel.repo
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
--> 수정 : baseurl=http://archives.fedoraproject.org/pub/archive/epel/6/$basearch

baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
--> 수정 : baseurl=http://archives.fedoraproject.org/pub/archive/epel/6/$basearch/debug

baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
--> 수정 : baseurl=http://archives.fedoraproject.org/pub/archive/epel/6/SRPMS

반응형

댓글