Fedora镜像使用帮助

收录架构

收录版本


使用说明

将以下保存为 fedora-jlu.repo
[fedora] 
name=Fedora $releasever - $basearch - jlu
failovermethod=priority 
baseurl=http://mirrors.jlu.edu.cn/fedora/linux/releases/$releasever/Everything/$basearch/os/ 
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch 
enabled=1 
metadata_expire=7d 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 
 
[fedora-debuginfo] 
name=Fedora $releasever - $basearch - Debug - jlu
failovermethod=priority 
baseurl=http://mirrors.jlu.edu.cn/fedora/linux/releases/$releasever/Everything/$basearch/debug/ 
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch 
enabled=0 
metadata_expire=7d 
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 
 
[fedora-source] 
name=Fedora $releasever - Source - jlu
failovermethod=priority 
baseurl=http://mirrors.jlu.edu.cn/fedora/linux/releases/$releasever/Everything/source/SRPMS/ 
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch 
enabled=0 
metadata_expire=7d 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 

将以下保存为 fedora-updates-jlu.repo
[updates]
name=Fedora $releasever - $basearch - Updates - jlu
failovermethod=priority 
baseurl=http://mirrors.jlu.edu.cn/fedora/linux/updates/$releasever/$basearch/ 
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch 
enabled=1 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 
 
[updates-debuginfo] 
name=Fedora $releasever - $basearch - Updates - Debug -jlu
failovermethod=priority 
baseurl=http://mirrors.jlu.edu.cn/fedora/linux/updates/$releasever/$basearch/debug/ 
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch 
enabled=0 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 
 
[updates-source] 
name=Fedora $releasever - Updates Source - jlu
failovermethod=priority 
baseurl=http://mirrors.jlu.edu.cn/fedora/linux/updates/$releasever/SRPMS/ 
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch 
enabled=0 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 

先备份/etc/yum.repos.d/fedora.repo和/etc/yum.repos.d/fedora-updates.repo
将 fedora-jlu.repo和 fedora-updates-jlu.repo放入/etc/yum.repos.d/中
运行:
sudo yum makecache

更新缓存即可。

RPMFusion使用说明


rpmfusion是为Fedora/RHEL提供额外rpm软件包的第三方软件源,使用方法如下:

针对fedora17:
su -c 'yum localinstall --nogpgcheck http://mirrors.jlu.edu.cn/fedora/rpmfusion/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://mirrors.jlu.edu.cn/fedora/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'

针对fedora18(rawhide):
su -c 'yum localinstall --nogpgcheck http://mirrors.jlu.edu.cn/fedora/rpmfusion/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm http://mirrors.jlu.edu.cn/fedora/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm'

针对development:
su -c 'yum localinstall --nogpgcheck http://mirrors.jlu.edu.cn/fedora/rpmfusion/free/fedora/rpmfusion-free-release-branched.noarch.rpm http://mirrors.jlu.edu.cn/fedora/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-branched.noarch.rpm'

安装好以上rpm(主要包括rpmfusion相应的repo文件)后,再运行:
sudo yum makecache

更新缓存即可。

相关链接