首页 > 代码库 > Federa 7 配置yum 源

Federa 7 配置yum 源

今天给老服务器虚拟机配置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 - ustcfailovermethod=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 - ustcfailovermethod=priority baseurl=http://mirrors.ustc.edu.cn/fedora/linux/releases/$releasever/Everything/$basearch/debug/ enabled=0 #metadata_expire=7d gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch  [fedora-source] name=Fedora $releasever - Source - ustcfailovermethod=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 - ustcfailovermethod=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 -ustcfailovermethod=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 - ustcfailovermethod=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 源