LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 751|回复: 4

配置yum后,更新还是很慢?!

[复制链接]
发表于 2007-7-8 10:10:55 | 显示全部楼层 |阅读模式
我配置了CentOS-Base.repo的更新镜像,但是更新和安装软件包时还是很慢20kb/s左右,如果直接下载可以达到8MB/s?这是为什么?
以下是CentOS-Base.repo的一部分信息:


[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://202.38.97.230/centos/5/os/x86_64/
http://ftp.sjtu.edu.cn/centos/5/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://202.38.97.230/centos/5/updates/x86_64/
http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
baseurl=http://202.38.97.230/centos/5/addons/x86_64/
http://ftp.sjtu.edu.cn/centos/5/addons/x86_64/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
发表于 2007-7-8 10:35:00 | 显示全部楼层
是不是 yum 用了其他 mirror 了,用 yum-fastestmirror 找出最快的~
  1. # yum install yum-fastestmirror
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-8 16:27:56 | 显示全部楼层
当用# yum update 时就有很快的下载速度。用图形界面的“软件包更新”就很慢。
这是?
ps: yum update 和 yum upgrade有何不同?
回复 支持 反对

使用道具 举报

发表于 2007-7-8 17:03:22 | 显示全部楼层
据我所知,yum的图形界面好像是用python写的。动态语言的程序运行起来是比较慢的。这是因为运行期类型检查付出的代价。另外由于redhat在中国没有源,综合这两个因素。慢是情理之中的事情。不过f7的仓库合并之后,yum的速度是比f6快了一大截。呵呵。
回复 支持 反对

使用道具 举报

发表于 2007-7-8 17:44:42 | 显示全部楼层
CentOS里的software updater还真是慢的可以,我都是直接用yum更新的。

LZ把baseurl里改成一个试试看,不要两个都写。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表