很多人选择CentOS源于他的开源、免费、可升级。我选择他最看重最后一点---可升级。开源不用说,linux嘛;免费,哈我是一个提倡盗版者;可升级这点可就是CentOS的绝对优势了,你可以像使用正版红帽一样!I love Red Hat,So I love CentOS.
闲话少叙,奔主题。使用yum安装软件,升级系统是非常方便的。但如果网速不行,或在学校(就像首师大)访问国外网成问题的,升级起来慢死。这样,最好更改yum镜像站点为中国站点地址,这里推荐
http://centos.ustc.edu.cn/centos/。中国科技大学的镜像站点。(瞧人家多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的镜像地址。
分享到:
相关推荐
oracle安装教程之Linux更换yum源
Oracle Linux更新Yum源还是挺方便的,比Red Hat省事很多,而且在6.3的版本中,默认已经有重新编译可用的Yum了。
linux修改yum源,下载后按照里面的说明,一步步修改即可
Linux下配置yum源及共享目录的配置
linux redhat centos修改yum下载源.zip
linux 光盘yum源配置文件 只需修改 文件目录即可使用
[local_server] (库名称) name=This is a local repo (名称描述) ...baseurl=file:///mnt/cdrom (yum源目录,源地址) enabled=1(是否启用该yum源,0为禁用) gpgcheck=0(检查GPG-KEY,0为不检查,1为检查)
linux 配置 yum
yum仓库配置 重新生成rpm包的依赖关系 修改yum客户端的配置文件
将redhat linux下收费yum源改为centos免费Yum源 有上网找的yum源软件包下载地址,直接就可以用
RedHat Enterprise Linux 6.4使用yum安装出现This system is not registered to Red Hat Subscription Management问题,但是发现激活Redhat的yum功能需要收费,所以就更改为CentOS的yum包了。 综合多份文档,本人...
关于centos7搭建KVM虚拟化、VNCserver安装调试、yum源修改方法;
修改linux操作系统 修改centos系统的yum源为阿里云详解
注:附件里有已修改好的CentOS6-Base.repo文件,直接替换进去即可。 三、清理yum缓存 #yum clean all 四、安装 # yum --nogpgcheck install firefox-1.5.0.9-10.el5.i386.rpm 注:要--nogpgcheck参数,否则可能...
由于redhat系统不再官网注册,系统安装完成之后无法正常使用期yun源,因此更改redhat的yum源为CentOS的源 删除yum 本资源 最新yum rpm安装包及yum.repo文件 2018
redhat更换yum源亲测可用。所有的依赖包都已下好,直接按照文档更新就好
自动化安装redhat yum 工具,省去寻找开源镜像,修改配置文件等繁琐过程,直接自动安装。 使用前请先自己将系统自带yum卸载, 卸载命令: rpm -qa|grep yum|xargs rpm -e -–nodeps
LINUX下安装YUM工具以及修改YUM源方法,参考文档: http://blog.csdn.net/likunwen_001/article/details/77101955
cetnos或者其他linux发行版支持yum方式,通过修改yum源安装mysql,十分详细,官方教程,支持各个mysql版本
本人使用的方法一,成功配置,方法二没测过,可以作为参考 ...2.修改源配置文件 #vim /etc/yum.repos.d/CentOS-Base.repo (如果目录下没有.repo文件自己创建一个) [base] name=CentOS-5-Base #mirrorl