RHEL转centos后,定的一个centos源的repo
来源:互联网 发布:吉隆坡出租车软件 编辑:程序博客网 时间:2024/06/06 05:46
最好更改yum镜像站点为中国站点地址,这里推荐[url]http://centos.ustc.edu.cn/centos/[/url]。中国科技大学的镜像站点。(瞧人家多NB,人家那也是大学,再看...)。
修改/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-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://centos.ustc.edu.cn/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://centos.ustc.edu.cn/centos/$releasever/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-$releasever - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
baseurl=http://centos.ustc.edu.cn/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://centos.ustc.edu.cn/centos/$releasever/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-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
简单的说就是把mirrorlist注释掉,将baseurl改成ustc.edu.cn的镜像地址。
这里的url也已经过时了,但这个外源还可以用,注意更新噢,比如
baseurl=http://centos.ustc.edu.cn/centos/$releasever/os/$basearch/设置为http://mirrors.ustc.edu.cn/centos/5/os/i386/,这里变量还是取实际值为好,和上篇在一起,一个建centos yum,一个建外源repo,这样,外源yum成功了!
- RHEL转centos后,定的一个centos源的repo
- CentOS 5.* 6.*下安装RHEL EPEL Repo软件源
- RHEL使用CentOS的yum源
- RHEL使用centos的yum源
- RHEL/CentOS安装EPEL的YUM源
- RHEL 6.7换CentOS的yum源
- RHEL下使用CENTOS的YUM源
- 修改rhel的yum使用centos源
- CentOS与RHEL的区别
- centos与RHEL的关系
- CenOS中yum可用的一个配置CentOS-Base.repo
- RHEL/CentOS下的yum的使用
- rhel转centos,收藏
- 给centos重新安装yum的base-repo源
- centos yum的配置文件 repo文件详解
- centos等linux的repo源地址
- centos yum的配置文件 repo文件详解
- CentOS/RHEL Rabbitvcs 的安装 和 如何开启 EPEL 源
- 日本妄图掀起又一场“倒幕运动”,已经没有回头路了
- 网站分析
- 别人收藏的一些网站
- Android下检测网络连接 3G WIFI
- 数据库查询中的连接操作(join)
- RHEL转centos后,定的一个centos源的repo
- SQLite学习手册(在线备份)
- wso2部署alfresco问题记录
- 正则 整数+小数
- Double-checked locking
- AndEngine嵌入广告
- 图片
- Java判断一个数是不是素数
- 黑马程序员之ASP.NET学习笔记:.NET,ASP.NET,C#,VisualStudio之间的关系是什么?