Chinaunix首页 | 论坛 | 博客
  • 博客访问: 405668
  • 博文数量: 23
  • 博客积分: 6136
  • 博客等级: 准将
  • 技术积分: 992
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-16 15:02
文章存档

2012年(1)

2011年(1)

2010年(7)

2009年(7)

2008年(7)

分类: LINUX

2010-07-16 08:21:15

# vi /etc/yum.repos.d/fedora-cn.repo
=============================================================================
[fedora-mirrors.sohu.com]
name=Fedora $releasever - $basearch - sohu.com
failovermethod=priority
baseurl=
mirrorlist=
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo-mirrors.sohu.com]
name=Fedora $releasever - $basearch - Debug - sohu.com
failovermethod=priority
baseurl=
mirrorlist=
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source-mirrors.sohu.com]
name=Fedora $releasever - Source - sohu.com
failovermethod=priority
baseurl=
mirrorlist=
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-mirrors.163.com]
name=Fedora $releasever - $basearch - 163.com
failovermethod=priority
baseurl=
mirrorlist=
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo-mirrors.163.com]
name=Fedora $releasever - $basearch - Debug - 163.com
failovermethod=priority
baseurl=
mirrorlist=
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source-mirrors.163.com]
name=Fedora $releasever - Source - 163.com
failovermethod=priority
baseurl=
mirrorlist=
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

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

# vi /etc/yum.repos.d/fedora-update-cn.repo
=============================================================================
[updates-mirrors.sohu.com]
name=Fedora $releasever - $basearch - Updates - sohu.com
failovermethod=priority
baseurl=
mirrorlist=
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-debuginfo-mirrors.sohu.com]
name=Fedora $releasever - $basearch - Updates - Debug - sohu.com
failovermethod=priority
baseurl=debug/
mirrorlist=
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-source-mirrors.sohu.com]
name=Fedora $releasever - Updates Source - sohu.com
failovermethod=priority
baseurl=
mirrorlist=
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-mirrors.163.com]
name=Fedora $releasever - $basearch - Updates - 163.com
failovermethod=priority
baseurl=
mirrorlist=
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-debuginfo-mirrors.163.com]
name=Fedora $releasever - $basearch - Updates - Debug - 163.com
failovermethod=priority
baseurl=debug/
mirrorlist=
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-source-mirrors.163.com]
name=Fedora $releasever - Updates Source - 163.com
failovermethod=priority
baseurl=
mirrorlist=
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
=============================================================================

最新的源获取方法:
访问 和   找到Fedora 所在行,
点击其右侧的   和 , 然后参照其说明操作即可。

上海交大的源
/etc/yum.repos.d/sjtu.repo

-----------------------------------------
[Fedora-ftp.sjtu.edu.cn]
name=Fedora 12 - i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[Everything-ftp.sjtu.edu.cn]
name=Everything 12 - i386
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[updates-ftp.sjtu.edu.cn]
name=Fedora updates
baseurl=
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora


最后, 是新添加的源生效:
yum makecache
阅读(1753) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~