[OS]/Linux

yum.repo.d 설정

하늘을닮은호수M 2008. 7. 3. 15:05
반응형
yum.repo.d 설정 (FC7)

/etc/yum.conf
원래 들어있는 파일은 4개다.

-rw-r--r-- 1 root root 1541 2007-05-25 05:58 fedora-development.repo
-rw-r--r-- 1 root root 1084 2007-05-25 05:58 fedora-updates-testing.repo
-rw-r--r-- 1 root root 1062 2008-07-03 14:33 fedora-updates.repo
-rw-r--r-- 1 root root 1152 2008-07-03 14:33 fedora.repo


여기에서 인스톨에 fedora.repo, 업데이트에 fedora-updates.repo를 쓴다. 일단 요것만 고쳐보자.

<원본 fedora.repo>
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
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora


baseurl에 주석 처리가 되어있으니 결국 mirrorlist 행이 관건인 셈이다. $releasever는 자기 페도라 버전에 따라 현재까지 1~5로 나타난다. 그럼 주소에 나와 있는 fedora-core-4 파일을 열어보자.
http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-7&arch=i386
# repo = fedora-7 arch = i386 country = KR country = RU country = JP country = HK country = PK country = CN country = CY country = TW country = TR country = TH 



http://ftp.kaist.ac.kr/pub/fedora/linux/releases/7/Everything/i386/os http://allotter.yandex.net/fedora/linux/releases/7/Everything/i386/os http://ftp.cse.yzu.edu.tw/pub/Linux/Fedora/releases/7/Everything/i386/os http://fedora.candishosting.com.cn/pub/fedora/linux/releases/7/Everything/i386/os http://dispenser.yandex.net/fedora/linux/releases/7/Everything/i386/os http://fedora.mirrors.firstnetcom.com/fedora/releases/7/Everything/i386/os http://seeder.yandex.net/fedora/linux/releases/7/Everything/i386/os http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/releases/7/Everything/i386/os http://spreader.yandex.net/fedora/linux/releases/7/Everything/i386/os http://ftp.itu.edu.tr/Mirror/Fedora/linux/releases/7/Everything/i386/os http://ftp.twaren.net/Linux/Fedora/linux/releases/7/Everything/i386/os http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/linux/releases/7/Everything/i386/os http://mirrors.cytanet.com.cy/linux/fedora/linux/releases/7/Everything/i386/os http://opensource.nchc.org.tw/fedora/linux/releases/7/Everything/i386/os







가능한 미러가 나와있다. 여기에 추가하고 싶은 미러 사이트를 하나 추가한다.


<custom-BASE>
# repo = fedora-7 arch = i386 country = KR country = RU country = JP country = HK country = PK country = CN country = CY country = TW country = TR country = TH 
http://...
http://ftp.kaist.ac.kr/pub/fedora/linux/releases/7/Everything/i386/os http://allotter.yandex.net/fedora/linux/releases/7/Everything/i386/os http://ftp.cse.yzu.edu.tw/pub/Linux/Fedora/releases/7/Everything/i386/os http://fedora.candishosting.com.cn/pub/fedora/linux/releases/7/Everything/i386/os http://dispenser.yandex.net/fedora/linux/releases/7/Everything/i386/os http://fedora.mirrors.firstnetcom.com/fedora/releases/7/Everything/i386/os http://seeder.yandex.net/fedora/linux/releases/7/Everything/i386/os http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/releases/7/Everything/i386/os http://spreader.yandex.net/fedora/linux/releases/7/Everything/i386/os http://ftp.itu.edu.tr/Mirror/Fedora/linux/releases/7/Everything/i386/os http://ftp.twaren.net/Linux/Fedora/linux/releases/7/Everything/i386/os http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/linux/releases/7/Everything/i386/os http://mirrors.cytanet.com.cy/linux/fedora/linux/releases/7/Everything/i386/os http://opensource.nchc.org.tw/fedora/linux/releases/7/Everything/i386/os


<custom-UPDATES>
http://...
http://ftp.kaist.ac.kr/pub/fedora/linux/releases/7/Everything/i386/os http://allotter.yandex.net/fedora/linux/releases/7/Everything/i386/os http://ftp.cse.yzu.edu.tw/pub/Linux/Fedora/releases/7/Everything/i386/os http://fedora.candishosting.com.cn/pub/fedora/linux/releases/7/Everything/i386/os http://dispenser.yandex.net/fedora/linux/releases/7/Everything/i386/os http://fedora.mirrors.firstnetcom.com/fedora/releases/7/Everything/i386/os http://seeder.yandex.net/fedora/linux/releases/7/Everything/i386/os http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/releases/7/Everything/i386/os http://spreader.yandex.net/fedora/linux/releases/7/Everything/i386/os http://ftp.itu.edu.tr/Mirror/Fedora/linux/releases/7/Everything/i386/os http://ftp.twaren.net/Linux/Fedora/linux/releases/7/Everything/i386/os http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/linux/releases/7/Everything/i386/os http://mirrors.cytanet.com.cy/linux/fedora/linux/releases/7/Everything/i386/os http://opensource.nchc.org.tw/fedora/linux/releases/7/Everything/i386/os

그럼 fedora.repo, fedora-updates.repo 기존의 mirrorlist를 주석처리하고, 새로운 주소로 설정하자.
gpgcheck도 꺼놓으면 성가시지 않다.

<고친 fedora.repo>
mirrorlist=file:///etc/yum.repos.d/custom-base
gpgcheck=0


<고친 fedora-updates.repo>
mirrorlist=file:///etc/yum.repos.d/custom-updates


다시 실행할 서비스 없이 다음에 yum 실행할 때 바로 적용된다.
반응형

'[OS] > Linux' 카테고리의 다른 글

주기적인 스크립트 실행을 위한 crontab 설정  (0) 2008.08.05
ftp 자동접속 & 특정 파일 내려받기 & 로그 분석  (0) 2008.08.01
Trac Authentication  (0) 2007.10.24
Touch Screen & Beryl  (0) 2007.10.23
svn restore  (0) 2007.10.18