Admin관리자   |    Posting포스트   |    LogOut로그아웃
:+:하늘을닮은호수:+: | Trac | 블로그   |    위치로그   |    태그로그   |    방명록


하늘을 닮은 호수
http://sunsson.iptime.org
Category
전체 (966)
[Standard] (59)
[OS] (119)
[Develope] (77)
[IT Trend] (347)
[Music] (101)
[삶의 질] (262)
Tag List
trac   3GPP   IPTV   svn   2MB   mysql   RTP   VoIP   c99   PSS   FLV   ffmpeg   grep   cdn   손예진   avc   memory_leak   H.263   팔봉산   awk   BIFS   연애시대   행복   IPv6   이명박대운하   광우병소고기   proactor   hint track   rtsig   SElinux  
‘yum.repo.d’에 해당되는 글 1건
yum.repo.d 설정
Category : [OS]/Linux
Date : 2008/07/03 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 실행할 때 바로 적용된다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2008/07/03 15:05 2008/07/03 15:05
Top

블로그코리아에 블UP하기
Creative Commons License
블로그 내에 모든 저작물은 크리에이티브 커먼즈코리아 저작자표시 - 비영리 - 변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
최근 덧글
펼치기
최근 트랙백
펼치기
Today :
30
Yesterday :
207
Total :
78521
Powered by :
Textcube
ver :
1.7.5 : Risoluto
skin by :