2012.07.27 11:55
리눅스 설치 후 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
246 | debian / ubuntu 에서 ntsysv(rcconf) 사용하기 | 호스트웨이 | 2012.11.01 | 18268 |
245 | 리눅스 파티션 볼륨 레이블 설정 | 호스트웨이 | 2012.11.01 | 3176 |
244 | Web site에서 php error log 출력하지 않기 | 호스트웨이 | 2012.11.01 | 5048 |
243 | 리눅스 wc 명령어 | 호스트웨이 | 2012.10.26 | 3474 |
242 | TCp syn Flooding 공격시 대처방법 TIP | 호스트웨이 | 2012.10.26 | 2238 |
241 | 리눅스 du 사용법 | 호스트웨이 | 2012.10.25 | 17829 |
240 | 리눅스 시스템상에서 하드웨어사양 확인 | 호스트웨이 | 2012.10.24 | 2369 |
239 | ls 명령어의 파일 사이즈 쉽게 확인하기 | 호스트웨이 | 2012.10.23 | 177223 |
238 | history 삭제 막기 | 호스트웨이 | 2012.10.19 | 3966 |
237 | Disk I/O 줄이기 | 호스트웨이 | 2012.10.18 | 18478 |
236 | 리눅스 tac 명령어를 통해 파일내용 역순으로 출력하기 | 호스트웨이 | 2012.10.18 | 4487 |
235 | 리눅스 파일명 일괄변경하기 | 호스트웨이 | 2012.10.18 | 4469 |
234 | VNC-server 설치 및 설정 | 호스트웨이 | 2012.10.12 | 4155 |
233 | lrzsz 사용해보기 | 호스트웨이 | 2012.10.12 | 6063 |
232 | 문자열 치환하기 | 호스트웨이 | 2012.10.12 | 12662 |
231 | ispell 명령어를 통한 철자 검사 및 수정하기 | 호스트웨이 | 2012.10.12 | 2523 |
230 | 리눅스 vsftp 자세한 log남기는 설정 | 호스트웨이 | 2012.10.11 | 18047 |
229 | ssh port 번호 변경하기 | 호스트웨이 | 2012.10.05 | 16491 |
228 | /dev/null 과 /dev/zero의 차이 | 호스트웨이 | 2012.10.05 | 4299 |
227 | fstab 손상으로 / 파티션이 Read-Only 상태일 때 Remount 하는 방법 | 호스트웨이 | 2012.10.05 | 30728 |