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

 

번호 제목 글쓴이 날짜 조회 수
206 RPM 관련 옵션들-1 호스트웨이 2012.07.27 17400
205 SSH 로그인 지연 시 해결 방법 호스트웨이 2012.05.25 17393
204 ALERT! /dev/disk/xxxx Does not exist. Dropping to a shell 문제 해결 호스트웨이 2012.07.06 17312
203 cal 명령어로 달력 보기 호스트웨이 2012.08.23 17309
202 Ubuntu 12.04: Ubuntu 11.10 또는 Ubuntu 10.04 LTS 에서 Ubuntu 12.04 로 업그레이드하기 호스트웨이 2012.05.04 17225
201 telnet 사용 시 접속가능 시간 제어 하는 법 호스트웨이 2012.05.18 17220
200 CentOS 4.x – yum mirror 사이트 변경 호스트웨이 2012.05.25 17179
199 Debian upgrade, lenny apt source list 호스트웨이 2012.05.25 17165
198 리눅스 uptime 명령어 file 호스트웨이 2012.08.24 17136
197 리눅스 로그인 메시지 출력 file 호스트웨이 2012.07.06 17108
196 CentOS 5/6 에 VMware Tools 설치 방법 호스트웨이 2012.08.31 17053
195 SED 명령어 사용법 호스트웨이 2012.07.20 16956
194 vsftpd.conf 옵션 설명 호스트웨이 2012.04.06 16819
193 ngrep 사용법 호스트웨이 2012.04.13 16811
192 리눅스 bc명령어 file 호스트웨이 2012.08.31 16784
191 리눅스 tar로 압축 할 때 Archive에 파일 업데이트 하기 호스트웨이 2012.05.18 16530
190 도메인 Status Code 호스트웨이 2012.04.27 16501
189 ssh port 번호 변경하기 호스트웨이 2012.10.05 16491
188 시스템내에서 하드 용량이 다르게 보이는 이유 호스트웨이 2012.06.29 16433
187 안전한 패스워드 생성하기 호스트웨이 2012.06.08 16385