CentOS yum镜像速度测试记录文件
2010-05-14 22:54:37 来源:WEB开发网核心提示:在向大家详细介绍CentOS yum之前,首先让大家了解下CentOS yum,CentOS yum镜像速度测试记录文件,然后全面介绍CentOS yum,希望对大家有用,现在弄好了,更新200多MB的东东,CentOS yum安装方式在有网络环境的时候非常方便,选择一个比较快的CentOS yum源是非常有意义的(1
在向大家详细介绍CentOS yum之前,首先让大家了解下CentOS yum,然后全面介绍CentOS yum,希望对大家有用。CentOS yum安装方式在有网络环境的时候非常方便,选择一个比较快的CentOS yum源是非常有意义的
(1)自动选择最快的源
由于CentOS yum中有的mirror速度是非常慢的,如果yum选择了这个mirror,这个时候CentOS yum就会非常慢,对此,可以下载fastestmirror插件,它会自动选择最快的
- mirror:
- yum install yum-fastestmirror -y
- fastestmirror配置文件:(一般不用动)
- /etc/yum/pluginconf.d/fastestmirror.conf
你的CentOS yum镜像的速度测试记录文件:/var/cache/yum/timedhosts.txt
(2)一直受不了centos的更新源的速度,现在弄好了。更新200多MB的东东,5分钟搞定。1 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.old
2 创建新的repo文件vi /etc/yum.repos.d/CentOS-Base.repo
引用
- # CentOS-Base.repo
- #
- # This file uses a new mirrorlist system developed by Lance Davis for CentOS.
- # The mirror system uses the connecting IP address of the client and the
- # update status of each mirror to pick mirrors that are updated to and
- # geographically close to the client. You should use this for CentOS updates
- # unless you are manually picking other mirrors.
- #
- # If the mirrorlist= does not work for you, as a fall back you can try the
- # remarked out baseurl= line instead.
- #
- #
- [base]
- name=CentOS-5.0 - Base
- baseurl=http://mirror.be10.com/centos/5/os/$basearch/
- gpgcheck=1
- gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
- #released updates
- [update]
- name=CentOS-5.0 - Updates
- baseurl=http://mirror.be10.com/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-5.0 - Addons
- baseurl=http://mirror.be10.com/centos/5/addons/$basearch/
- gpgcheck=1
- gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
- #additional packages that may be useful
- [extras]
- name=CentOS-5.0 - Extras
- baseurl=http://mirror.be10.com/centos/5/extras/$basearch/
- gpgcheck=1
- gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
- #additional packages that extend functionality of existing packages
- [centosplus]
- name=CentOS-5.0 - Plus
- baseurl=http://mirror.be10.com/centos/5/centosplus/$basearch/
- gpgcheck=1
- enabled=0
- gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
- #contrib - packages by Centos Users
- [contrib]
- name=CentOS-5.0 - Contrib
- baseurl=http://mirror.be10.com/centos/5/contrib/$basearch/
- gpgcheck=1
- enabled=0
- gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
- #packages in testing
- [testing]
- name=CentOS-5.0 - Testing
- baseurl=http://mirror.be10.com/centos/5.0/testing/$basearch/
- gpgcheck=1
- enabled=0
- gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
- rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
- [root@localhost yum.repos.d]# yum upgrade
【编辑推荐】
- ››CentOS系统只需6步添加新硬盘并分区格式化的方法
- ››Centos6.0 64位下 MySQL 5.6.11 CMake 安装部署
- ››CentOS下配置超级终端minicom
- ››Centos6.2_x86_64环境下puppet-dashboard安装配置...
- ››CentOS下建立本地YUM源并自动更新
- ››CentOS 安装 PostgreSQL 9.2
- ››CentOS 6.3 安装 Oracle 11gR2 依赖库检查失败处理...
- ››CentOS 6.X 系统初始化生产脚本
- ››CentOS 6下安装nodejs 0.9.0教程
- ››CentOS使用Screen管理会话选项
- ››CentOS+JDK+Tomcat+MySql&JDBCDriver 开发环境搭建...
- ››CentOS 5.6创建NFS文件共享服务器
更多精彩
赞助商链接