一、本地源
参考: http://blog.chinaunix.net/uid-796091-id-3293876.html
将Fedora 17 DVD ISO添加为源
#mkdir /mnt/iso
#mount Fedora-17-i386-DVD.iso /mnt/iso
接着在/etc/yum.repos.d目录添加文件f17localiso.repo:
[server]
name=f17localiso
baseurl=file:///mnt/iso/
enable=1
gpgcheck=0
之后使用yum的相关参数可以忽略其他的源而只使用指定源。这样就可以不下载而直接安装:
$ yum --disablerepo=* --enablerepo=f17localiso list available
二、remi 源
Remi源大家或许很少听说,不过Remi源GoFace强烈推荐,尤其对于不想编译最新版的linux使用者,因为Remi源中的软件几乎都是最新稳定版。或许您会怀疑稳定不?放心吧,这些都是Linux骨灰级的玩家编译好放进源里的,他们对于系统环境和软件编译参数的熟悉程度毋庸置疑。
Remi下载地址:http://rpms.famillecollet.com/
您也需要针对不同的版本号下载。我的系统是fedora 17,所以对应下载remi-release-17.rpm
安装remi源
rpm -Uvh http://rpms.famillecollet.com/remi-release-17.rpm
升级Firefox
yum --enablerepo=remi update firefox
ps: 为了避免每次都要输入 --enablerepo=remi 可以修改 /etc/yum.repo.d/remi.repo文件中的 enable=1
参考: http://blog.51osos.com/linux/rhel-centos-fedora-epel-remi-rpmforge-rpmfusion/
三、其他yum源
原来的163、sohu等的fedora17源已经被移除了。都是有一个这样的README文件:
ATTENTION
======================================
The contents of this directory have been moved to our archives available at:
http://archives.fedoraproject.org/pub/archive/fedora/
If you are having troubles finding something there please stop by #fedora-admin on irc.freenode.net
根据上面的提示,找到了F17软件包的地址: http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/17/Everything/i386/os/
在 /etc/yum.repos.d/下建立文件f17.repo,内容如下:
[fedoraproject-17]
name=fedoraproject-17
failovermethod=priority
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/$releasever/Everything/$basearch/os/
enabled=1
gpgcheck=0
OK! yum源修复成功!
四、将f17源下载到本地
当然是使用强大的wget。
wget -m http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/17/Everything/i386/os/
下载完之后一看。。。7.5G。呵呵。不过,不怕以后找不到了。
下载之后在/etc/yum.repo.d/ 建立f17localserver.repo文件:
[server]
name=f17localserver
baseurl=file:///run/media/huntinux/D/f17repo/archives.fedoraproject.org/pub/archive/fedora/linux/releases/17/Everything/i386/os
enable=1
gpgcheck=0
另外: 找rpm包的网站
==================163,sohu源==================
fedora自带更新源,对于中国用户比较慢!
可以改用163、sohu的更新源,
163 和 sohu 地址是
http://mirrors.163.com/ 和 http://mirrors.sohu.com/
切换到更新源目录:cd /etc/yum.repos.d/
执行以下命令------
#wget http://mirrors.163.com/.help/fedora-163.repo
#wget http://mirrors.163.com/.help/fedora-updates-163.repo
#wget http://mirrors.sohu.com/help/fedora-sohu.repo
#wget http://mirrors.sohu.com/help/fedora-updates-sohu.repo
生成缓存的命令:yum makecache