Chinaunix首页 | 论坛 | 博客
  • 博客访问: 753550
  • 博文数量: 274
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 862
  • 用 户 组: 普通用户
  • 注册时间: 2015-10-24 15:31
个人简介

不合格的程序猿

文章分类

全部博文(274)

文章存档

2019年(3)

2018年(1)

2017年(4)

2016年(160)

2015年(106)

我的朋友

分类: LINUX

2016-05-18 19:16:30

原文地址:CentOS5.8 163 yum源配置文件 作者:w787815

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 即可。

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