CentOS 5.5 yum源修改

CentOS 5.5 yum源修改2010-09-16 17:40:12标签:CentOS yum mirrors 休闲 职场原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://kerry.blog.51cto.com/172631/392737 在CentOS系统中,yum是个好东西,一组件可以直接通过yum来安装,但系统默认的yum源速度往往不尽人意,为了达到快递安装的目的,在这里就需要修改yum源中科大的Centos 开源镜像站点. http://centos.ustc.edu.cn/执行以下命令就可以了cd /etc/yum.repos.dmv CentOS-Base.repo CentOS-Base.repo.bakwget http://centos.ustc.edu.cn/CentOS-Base.repo.5mv CentOS-Base.repo.5 CentOS-Base.repocat CentOS-Base.repo[base]name=CentOS-$releasever - Basebaseurl=http://centos.ustc.edu.cn/centos/$releasever/os/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5#released updates [updates]name=CentOS-$releasever - Updatesbaseurl=http://centos.ustc.edu.cn/centos/$releasever/updates/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5#packages used/produced in the build but not released[addons]name=CentOS-$releasever - Addonsbaseurl=http://centos.ustc.edu.cn/centos/$releasever/addons/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5#additional packages that may be useful[extras]name=CentOS-$releasever - Extrasbaseurl=http://centos.ustc.edu.cn/centos/$releasever/extras/$basearch/gpgcheck=1gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plusbaseurl=http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5也可以使用,http://mirrors.163.com/ http://mirrors.sohu.com本文出自 “聆听未来” 博客,请务必保留此出处http://kerry.blog.51cto.com/172631/392737

你可能感兴趣的:(linux)