centos yum 방화벽으로 업데이트 에러시
국내 미러 사이트로 수작업 교체하여 yum update 해봅니다.
vi /etc/yum.repo.d/CentOS-Base.repo
파일을 열어서
CentOS-Base.repo 파일을 아래의 내용으로 교체합니다. 그간 써본 국내 미러 사이트 중에서 Daum 미러가 제일 괜찮은 듯 합니다.
참고로 아래의 내용은 설치 기본값에서 미러서버 주소만 처리한 겁니다. 예를들어서, plus 를 이용하고 싶으시다면 enabled=0 을 enabled=1 이나 주석처리하면 됩니다.
# CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS. # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # #
[base] name=CentOS-$releasever - Base baseurl=http://ftp.daum.net/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-5
#released updates [updates] name=CentOS-$releasever - Updates baseurl=http://ftp.daum.net/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons baseurl=http://ftp.daum.net/centos/$releasever/addons/$basearch/ gpgcheck=1 gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful [extras] name=CentOS-$releasever - Extras baseurl=http://ftp.daum.net/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus baseurl=http://ftp.daum.net/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-5
#contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib baseurl=http://ftp.daum.net/centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://ftp.daum.net/centos/RPM-GPG-KEY-CentOS-5 |