添加搜狐的源

进入网站http://mirrors.sohu.com/ ,在左边找到fedora目录,点击该行右边的help, 然后 下载fedora-sohu.repo和fedora-updates-sohu.repo, 放入/etc/yum.repos.d/ 运行yum makecache生成缓存

添加163的源

进入网站 http://mirrors.163.com/ ,在左边找到fedora目录,点击改行右边的使用帮助,然后 下载fedora-163.repo和fedora-updates-163.repo, 放入/etc/yum.repos.d/ 运行yum makecache生成缓存

现在你可以运行命令 ls /etc/yum.repos.d 看看该目录下是不是多了两个源了呢 —

安装rpmfusion源

它有非常多的免费和非免费的软件,音视频解码器。

Fedora 14的源:sudo yum localinstall –nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-14.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-14.noarch.rpm

Fedora 15的源: sudo yum localinstall –nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-15.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-15.noarch.rpm

Fedora 16的源: sudo yum localinstall –nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-16.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-16.noarch.rpm

Fedora 17的源: sudo yum localinstall –nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-17.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-17.noarch.rpm

Fedora 18的源: sudo yum localinstall –nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-18.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-18.noarch.rpm

Fedora 19的源: sudo yum localinstall –nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-19.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-19.noarch.rpm

安装rpmforge的软件仓库

http://dag.wieers.com/rpm/packages/rpmforge-release/

找到与系统平台架构匹配的rpmforge包安装之即可。

安装自动选择最快源的插件fastestmirror

1
2
3
4
5
sudo yum -y install axel yum-plugin-fastestmirror
sudo -y update
yum updat
ls -l /etc/yum.repos.d看有已经添加了多少源
yum makecache 刷新源缓存