Linux ETC

CentOS 5.X의 yum 속도 올리기

2012.07.27 11:55

호스트웨이 조회 수:17545

 리눅스 설치 후 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

 

번호 제목 글쓴이 날짜 조회 수
146 리눅스 du 사용법 호스트웨이 2012.10.25 17829
145 TCp syn Flooding 공격시 대처방법 TIP 호스트웨이 2012.10.26 2238
144 리눅스 wc 명령어 file 호스트웨이 2012.10.26 3474
143 Web site에서 php error log 출력하지 않기 호스트웨이 2012.11.01 5048
142 리눅스 파티션 볼륨 레이블 설정 file 호스트웨이 2012.11.01 3176
141 debian / ubuntu 에서 ntsysv(rcconf) 사용하기 호스트웨이 2012.11.01 18268
140 i386, i586, i686, x86의 차이 호스트웨이 2012.11.01 7466
139 리눅스 look 명령어 file 호스트웨이 2012.11.02 2598
138 kbd_mode 명령어를 통해 인식중인 키보드모드 출력 및 변경하기 file 호스트웨이 2012.11.06 1896
137 쉘 프롬프트 설정하기 file 호스트웨이 2012.11.08 2671
136 bonding mode 종류 알아보기 호스트웨이 2012.11.08 10456
135 Ubuntu 12.10(quantal) 업그레이드 하기 호스트웨이 2012.11.09 19237
134 limits.conf 설명 file 호스트웨이 2012.11.09 2132
133 리눅스 간단 시스템 점검 1편 호스트웨이 2012.11.14 4128
132 vi 로 ^M 제거하기 호스트웨이 2012.11.15 11206
131 INIT: no more processes left in this runlevel 메세지 발생시 호스트웨이 2012.11.15 3018
130 arch 명령어를 통해 컴퓨터 종류 알기 file 호스트웨이 2012.11.16 1797
129 현재 접속 사용자(머신/디바이스)수 알아내기 호스트웨이 2012.11.16 1130
128 랜카드 본딩(bond0) 설정 호스트웨이 2012.11.16 2719
127 /proc 디렉터리내 파일 정보 알아보기 호스트웨이 2012.11.21 1917