Chinaunix首页 | 论坛 | 博客
  • 博客访问: 380793
  • 博文数量: 114
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1219
  • 用 户 组: 普通用户
  • 注册时间: 2015-02-07 21:23
文章分类

全部博文(114)

文章存档

2018年(1)

2017年(5)

2016年(87)

2015年(21)

我的朋友

分类: LINUX

2015-02-27 11:48:54

5.8 163 yum源配置文件

编辑 /etc/yum.repos.d/CentOS-Base.repo 文件如下:


# CentOS-Base.repo
#
# 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-$releasever - Base
#mirrorlist=
#baseurl=
baseurl=
gpgcheck=0
gpgkey=
    
#released updates
    
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=
#baseurl=
baseurl=
gpgcheck=0
gpgkey=
    
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
#mirrorlist=
#baseurl=
baseurl=
gpgcheck=0
gpgkey=
    
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=
#baseurl=
baseurl=
gpgcheck=0
gpgkey=
    
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=
#baseurl=
baseurl=
gpgcheck=0
enabled=0
gpgkey=

yum makecache 即可。

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