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

 

번호 제목 글쓴이 날짜 조회 수
386 scp 명령어를 이용한 파일 복사 및 전송 호스트웨이 2012.03.16 264526
385 ls 명령어의 파일 사이즈 쉽게 확인하기 호스트웨이 2012.10.23 176925
384 리눅스 서버 누가 언제 무슨 작업을 했는지 확인 방법 호스트웨이 2012.03.09 93443
383 sar 명령 옵션 호스트웨이 2012.06.15 93286
382 Linux Charset 확인 및 변경 file 호스트웨이 2012.03.30 85051
381 ulimit 설정 관련 호스트웨이 2015.07.29 77637
380 Swap 메모리 늘리기 file 호스트웨이 2012.03.30 67208
379 국가명 약어 (국가코드) 호스트웨이 2012.04.13 64993
378 head 와 tail 사용하기 sylee 2008.05.14 63483
377 비대해진 로그 파일 내용을 비우는 방법 - /dev/null 호스트웨이 2012.03.16 61418
376 서비스 이름으로 포트 번호 확인하기 호스트웨이 2012.04.13 57727
375 fdisk 명령어를 이용하여 수동으로 파티션 나누기 file 호스트웨이 2015.11.30 57714
374 강제 umount 방법 (umount : device is busy 발생시) 호스트웨이 2012.11.30 55457
373 top 명령어 및 옵션 설명 file 호스트웨이 2012.03.27 52552
372 xinetd 소개 및 설정 호스트웨이 2012.06.29 51911
371 history 조회시 '날짜,시간' 표시하기 호스트웨이 2012.03.16 49503
370 시스템 시간 확인 및 동기화 하기 sylee 2008.05.15 46977
369 /bin/false, /sbin/nologin 의 차이점 호스트웨이 2012.08.10 45769
368 Kernel Parameters HOSTWAY 2008.06.04 45457
367 ssh-key를 생성하여 서버에 패스워드 없이 접속하는 방법 jook 2008.06.25 44753