# 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
阅读(6262) | 评论(0) | 转发(1) |