码迷,mamicode.com
首页 > 其他好文 > 详细

Federa 7 配置yum 源

时间:2015-01-28 19:18:20      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

今天给老服务器虚拟机配置yum源,Federa版本太旧,最后好歹找到了可以用的源了

参考链接:

中科院mirrors: https://lug.ustc.edu.cn/wiki/mirrors/help/fedoras

Federa论坛:http://forums.fedoraforum.org/showthread.php?t=221471

附两个文件,将两个文件放到/etc/yum.repos.d目录下,然后运行yum makecache,即可

fedora-ustc.repo

[fedora] 
name=Fedora $releasever - $basearch - ustc
failovermethod=priority 
baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Fedora/$basearch/os/
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 - ustc
failovermethod=priority 
baseurl=http://mirrors.ustc.edu.cn/fedora/linux/releases/$releasever/Everything/$basearch/debug/ 
enabled=0 
#metadata_expire=7d 
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 
 
[fedora-source] 
name=Fedora $releasever - Source - ustc
failovermethod=priority 
baseurl=http://mirrors.ustc.edu.cn/fedora/linux/releases/$releasever/Everything/source/SRPMS/ 
enabled=0 
#metadata_expire=7d 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 

fedora-updates-ustc.repo

[updates]
name=Fedora $releasever - $basearch - Updates - ustc
failovermethod=priority 
baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/updates/$releasever/$basearch/
enabled=1 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 
 
[updates-debuginfo] 
name=Fedora $releasever - $basearch - Updates - Debug -ustc
failovermethod=priority 
baseurl=http://mirrors.ustc.edu.cn/fedora/linux/updates/$releasever/$basearch/debug/ 
enabled=0 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 
 
[updates-source] 
name=Fedora $releasever - Updates Source - ustc
failovermethod=priority 
baseurl=http://mirrors.ustc.edu.cn/fedora/linux/updates/$releasever/SRPMS/ 
enabled=0 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch 

 

Federa 7 配置yum 源

标签:

原文地址:http://www.cnblogs.com/hust_wsh/p/4256383.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!