Chinaunix首页 | 论坛 | 博客
  • 博客访问: 864538
  • 博文数量: 60
  • 博客积分: 163071
  • 博客等级: 大元帅
  • 技术积分: 824
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-31 13:20
文章分类

全部博文(60)

文章存档

2011年(1)

2010年(59)

分类:

2010-06-05 11:24:37

# 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 所在行,
点击其右侧的
  , 然后参照其说明操作即可。

最后, 是新添加的源生效:

yum makecache
阅读(5928) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~