Linux ETC

CentOS 5.X의 yum 속도 올리기

2012.07.27 11:55

호스트웨이 조회 수:17544

 리눅스 설치 후 yum update 할 때 다운로드시 오랜 시간이 소요 될 때가 있다.

yum-fastestmirror 라는 패키지를 설치하게되면 다운로드 속도가 가장 잘 나오는 mirror 서버를 자동으로 찾아주게 된다.

아래와 같이 패키지를 설치 후 update를 한다.

# yum -y install yum-fastestmirror

yum-fastestmirror 패키지가 설치되지 않는 경우도 있다.

그럴 땐 /etc/yum.repo.d/CentOS-Base.repo 파일을 아래와 같이 수정하여 사용하면 yum을 빠르게 실행할 수 있다.
daum에서 운영하는 미러서버를 이용 하는 방법입니다.


# 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

 

번호 제목 글쓴이 날짜 조회 수
206 리눅스 setup 명령어를 이용한 간편 설정 file 호스트웨이 2012.07.27 21094
» CentOS 5.X의 yum 속도 올리기 호스트웨이 2012.07.27 17544
204 RPM 관련 옵션들-1 호스트웨이 2012.07.27 17392
203 리눅스 시스템 폴더별 명령어 알아보기 호스트웨이 2012.08.03 13578
202 리눅스 touch 명령어 file 호스트웨이 2012.08.03 24830
201 PHP 설치된 모듈 확인 호스트웨이 2012.08.03 18941
200 리눅스 시스템 폴더별 명령어 알아보기 - 두번째 호스트웨이 2012.08.10 18030
199 리눅스 daemon 설명 호스트웨이 2012.08.10 28442
198 리눅스 디스크 종류별 명칭 호스트웨이 2012.08.10 17812
197 리눅스 Sleep 명령어 file 호스트웨이 2012.08.10 42138
196 /bin/false, /sbin/nologin 의 차이점 호스트웨이 2012.08.10 45638
195 Debian 에 SAMBA 서버 설정하기 호스트웨이 2012.08.23 21786
194 Linux 설치후 기본언어 한국어로 변경 호스트웨이 2012.08.23 15422
193 cal 명령어로 달력 보기 호스트웨이 2012.08.23 17307
192 리눅스에서 fstab을 UUID로 변경 호스트웨이 2012.08.23 32921
191 Chage 명령어 호스트웨이 2012.08.23 22605
190 틀린명령어 틀린글자만 바꿔서 실행하는 간단한팁 호스트웨이 2012.08.23 11717
189 리눅스 명령어 알아보기-3 호스트웨이 2012.08.23 12163
188 yum 업데이트시 특정 패키지 예외처리 방법 호스트웨이 2012.08.23 15386
187 History 삭제하는 방법 및 현재한 history 삭제하는 방법 호스트웨이 2012.08.24 23603