fedora 13 添加国内源

2010年08月31日 Fedora, Linux 暂无评论

fedora 13 添加国内源

上次在 http://www.linuxsight.com/blog/300 一文已经介绍怎么去配置本地ISO源

方法一样,现在来添加163和搜狐的源

[root@localhost yum.repos.d]# pwd
/etc/yum.repos.d

[root@localhost yum.repos.d]#gedit  fedora.repo

添加如下代码

[163.com]

name=Fedora 13 – i386
baseurl=http://mirrors.163.com/fedora/updates/13/i386/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[sohu-updates]
name=Fedora updates
baseurl=http://mirrors.sohu.com/fedora/updates/$releasever/$basearch/
enabled=1
gpgcheck=0

[sohu-fedora]
name=Fedora $releasever - $basearch
baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/$basearch/os/
enabled=1
gpgcheck=0

之后再运行
[root@localhost yum.repos.d]# yum makecache
已加载插件:fastestmirror, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
fedora/metalink                                          |  12 kB     00:00
* fedora: ftp.cuhk.edu.hk
163.com                                                  | 4.5 kB     00:00
163.com/filelists_db                                     | 6.4 MB     00:29
163.com/other_db                                         | 2.0 MB     00:09
163.com/group_gz                                         | 405 kB     00:01
163.com/updateinfo                                       | 475 kB     00:02
sohu-fedora                                              | 4.3 kB     00:00
sohu-fedora/filelists_db                                 |  16 MB     06:30
sohu-fedora/prestodelta                                  |  414 B     00:00
sohu-fedora/other_db                                     | 5.9 MB     02:47
sohu-fedora/group_gz                                     | 389 kB     00:27
sohu-updates                                             | 4.5 kB     00:00
sohu-updates/filelists_db                                | 6.4 MB     04:47
sohu-updates/other_db                                    | 2.0 MB     00:53
sohu-updates/group_gz                                    | 405 kB     00:13
元数据缓存已建立

这样就完成了源的配置。测试了一下,发现163的源比较快,可以达到正常的速度。

给我留言