Chinaunix首页 | 论坛 | 博客
  • 博客访问: 37203
  • 博文数量: 3
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 24
  • 用 户 组: 普通用户
  • 注册时间: 2011-10-08 22:32
文章分类
文章存档

2014年(3)

我的朋友

分类: LINUX

2014-03-07 14:09:34

原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://blog.chinaunix.net/space.php?uid=9419692&do=blog&id=3184103

在CentOS系统中,yum是个好东西,一组件可以直接通过yum来安装,但系统默认的yum源速度往往不尽人意,为了达到快递安装的目的,在这里就需要修改yum源

中科大的Centos 开源镜像站点.

执行以下命令就可以了

cd /etc/yum.repos.d

mv CentOS-Base.repo CentOS-Base.repo.bak

wget

mv CentOS-Base.repo.5 CentOS-Base.repo

cat CentOS-Base.repo

[base]
name=CentOS-$releasever - Base
baseurl=centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=centos/RPM-GPG-KEY-CentOS-5

也可以使用,

本文出自 “聆听未来” 博客,请务必保留此出处http://blog.chinaunix.net/space.php?uid=9419692&do=blog&id=3184103

阅读(3122) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~