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 | LILO - Warning: /dev/sda not first disk 에러 발생시 | 호스트웨이 | 2012.08.24 | 11629 |
245 | 서버시간 매시간마다 동기화 설정 | 호스트웨이 | 2015.09.23 | 11712 |
244 | 틀린명령어 틀린글자만 바꿔서 실행하는 간단한팁 | 호스트웨이 | 2012.08.23 | 11718 |
243 | 서버 계정을 다른서버로 이전하기 | 호스트웨이 | 2015.09.23 | 11760 |
242 | 두 파일 비교 diff 의 기본 사용법 | 호스트웨이 | 2015.09.14 | 11875 |
241 | cron table의 각 필드 설명 | 호스트웨이 | 2012.08.31 | 12017 |
240 | 리눅스 명령어 알아보기-3 | 호스트웨이 | 2012.08.23 | 12164 |
239 | 리눅스 일반사용자에게 root 권한 부여하기 | 호스트웨이 | 2012.11.23 | 12428 |
238 | extundelete tool을 이용하여 삭제된 파일 복구하기 | 호스트웨이 | 2016.02.29 | 12506 |
237 | 리눅스 프로세스별 메모리 사용량 확인 | 호스트웨이 | 2012.12.06 | 12660 |
236 | 문자열 치환하기 | 호스트웨이 | 2012.10.12 | 12662 |
235 | 리눅스 CD로 손상된 파일 복구하기 | 호스트웨이 | 2015.09.29 | 13085 |
234 | CentOS yum 빠르게 사용하기 | 호스트웨이 | 2012.09.14 | 13265 |
233 | -, -- 로 시작하는 파일 지우는 팁 | 호스트웨이 | 2012.05.11 | 13489 |
232 | 리눅스 시스템 폴더별 명령어 알아보기 | 호스트웨이 | 2012.08.03 | 13579 |
231 | VI 편집기에서 사용되는 명령어(2) | 호스트웨이 | 2012.04.06 | 13737 |
230 | 리눅스 디스크 사용량 확인 | 호스트웨이 | 2012.04.27 | 13879 |
229 | VI 편집기에서 사용되는 명령어 | 호스트웨이 | 2012.03.30 | 13909 |
228 | find 명령 2번째 | 호스트웨이 | 2012.04.20 | 13927 |
227 | sshd_config 파일 설명 | 호스트웨이 | 2012.11.29 | 14046 |