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

 

번호 제목 글쓴이 날짜 조회 수
226 XFS파일 장점및 단점 호스트웨이 2012.07.06 25485
225 IBM Integrated Management Module 로그인 정보 호스트웨이 2012.07.06 16182
224 ALERT! /dev/disk/xxxx Does not exist. Dropping to a shell 문제 해결 호스트웨이 2012.07.06 17323
223 데비안에서 CPU 온도 확인 해보기-lm_sensors 호스트웨이 2012.07.13 20450
222 리눅스에서 서버 호스트네임 관리 호스트웨이 2012.07.13 21206
221 리눅스에서 Which 명령어로 명령어 경로 확인 호스트웨이 2012.07.13 14959
220 리눅스 runlevel이란? 호스트웨이 2012.07.13 15452
219 리눅스 more 명령어 file 호스트웨이 2012.07.13 16104
218 Rsync를 이용한 데이터 Sync, 백업하기 – 2탄 호스트웨이 2012.07.13 23907
217 가장 안정적인 NTP 서버 주소 호스트웨이 2012.07.20 32124
216 SED 명령어 사용법 호스트웨이 2012.07.20 16956
215 리눅스 ss 명령어 호스트웨이 2012.07.20 23527
214 Vsftpd 파일명 혹은 확장자에 따른 업로드 제한하기 호스트웨이 2012.07.20 18598
213 리눅스 퍼미션(Permission)이란? file 호스트웨이 2012.07.20 15925
212 Linux 미사용 Demon이 실행되지 않게 설정하기 file 호스트웨이 2012.07.20 15565
211 Proftpd – ‘unable to determine IP address’ 에러 발생시 호스트웨이 2012.07.20 16193
210 Yum - Dag Repository 추가 호스트웨이 2012.07.27 19548
209 "The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA" 에러 메시지 발생 시 호스트웨이 2012.07.27 15400
208 Putty 접속 시 창 분할하는 방법(screen 이용) file 호스트웨이 2012.07.27 28535
207 리눅스 부트로더란? 호스트웨이 2012.07.27 17668