오래전 이야기/Server

속도빠른 yum mirror 서버

리눅스 엔지니어였던 2008. 9. 15. 14:05

[root@test yum.repos.d]# cat fedora.repo
[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
#mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
baseurl=http://fedora.hostway.co.kr/3/i386/os/
enabled=1
gpgcheck=1


[root@test yum.repos.d]# cat fedora-updates.repo
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
baseurl=http://fedora.hostway.co.kr/updates/3/i386/
enabled=1
gpgcheck=1


[root@test yum.repos.d]# cat fedora-updates-testing.repo
[updates-testing]
name=Fedora Core $releasever - $basearch - Test Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-testing-fc$releasever
baseurl=http://fedora.hostway.co.kr/updates-testing/3/i386/
enabled=0
gpgcheck=1


호스트웨이IDC에서 고맙게도 yum mirror서버를 운영하고 있습니다.

Fedora버전에 맞추어 i386앞의 숫자를 바꾸어 주시구요.

Fedora뿐만아니라 RedHat 9.0, 8.0, 7.3도 운영하고 있습니다.

속도변화를 한눈에 알수 있을겁니다.

개인적으로 이곳 엔지니어분들 상당한 내공의 소유자입니다..^^*


===================================================================


#######################
#    yum korea mirro site     #
#######################


# yum yum_repos 백업.


tar cvzfp yum_repos.tar.gz /etc/yum.repos.d

rm -rf /etc/yum.repos.d
 
vi /etc/yum.conf

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800


# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d


[base]
name = Fedora Core 5 base
baseurl=http://ftp.sayclub.co.kr/pub/fedora/linux/core/5/i386/os/

[updates]
name = Fedora Core 5 base
baseurl=http://ftp.sayclub.co.kr/pub/fedora/linux/core/updates/5/i386

[updates-released]
name = Fedora Core 5 base
baseurl=http://ftp.sayclub.co.kr/pub/fedora/linux/core/updates/5/i386


[extra]
name = Fedora Core 5 base
baseurl=http://ftp.sayclub.co.kr/pub/fedora/linux/extras/5/i386/



# fedora 버젼에 맞게 바꿔준후 yum restart.


/etc/rc.d/init.d/yum restart


##### 다른 mirror list


[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800


# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

[base]
name = Fedora Core 5 base
baseurl=http://ftp.kaist.ac.kr/pub/fedora/linux/core/5/i386/os/

[updates]
name = Fedora Core 5 base
baseurl=http://ftp.kaist.ac.kr/pub/fedora/linux/core/updates/5/i386

[updates-released]name = Fedora Core 5 base
baseurl=http://ftp.kaist.ac.kr/pub/fedora/linux/core/updates/5/i386


[extra]name = Fedora Core 5 base
baseurl=http://ftp.kaist.ac.kr/pub/fedora/linux/extras/5/i386/