标签:
今天给老服务器虚拟机配置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
标签:
原文地址:http://www.cnblogs.com/hust_wsh/p/4256383.html