yum 설치를 더 빠르게 해보자

yk hi·2021년 7월 14일

Linux

목록 보기
27/40

국내에서는 centos에 기본으로 깔려있는 것보다 Daum.repo가 더 빠르다.

cd /etc/yum.repo.d로 이동한 후

vi Daum.repo

[base]
name=CentOS-$releasever - Base
baseurl=http://ftp.daumkakao.com/centos/\$releasever/os/\$basearch/
gpgcheck=0
[updates]
name=CentOS-$releasever - Updates
baseurl=http://ftp.daumkakao.com/centos/$releasever/updates/$basearch/
gpgcheck=0
[extras]
name=CentOS-$releasever - Extras
baseurl=http://ftp.daumkakao.com/centos/$releasever/extras/$basearch/
gpgcheck=0

위와 같은 내용을 붙여넣으면 된다!!

이후 yum repolist를 하면

[root@server1 yum.repos.d]# yum repolist
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirror.kakao.com
* epel: ftp.riken.jp
* extras: mirror.kakao.com
* updates: mirror.kakao.com

위와같이 바뀌어 있는걸 확인할 수 있다!

이제 더 빠르게 yum 설치를 할 수 있게 되었다!!

profile
엔지니어의 실력은 고통의 총합이다 <임백준 칼럼>

0개의 댓글