Fedora 20 中添加及更新源的命令

作者:简简单单 2014-03-09

fedora的软件源信息文件(*.repo)都是放在 /etc/yum.repos.d 目录下的。可以通过# ls -l /etc/yum.repos.d 查看,因为默认的软件源都是国外的,可能网速不是很快,我们可以自己添加国内软件源和本地软件源。

添加国内软件源

 代码如下 复制代码

# 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
# wget http://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/fedora?codeblock=0
# wget http://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/fedora?codeblock=1
# yum makecache //(更新缓存)

以上 wget 源时可以复制所有后执行。最后执行更新即可

相关文章

精彩推荐