装完RHEL之后,活用CentOS的Repository

RHEL的Repository好像要帐号。

所以yum几乎就不能用了。

 

在 /etc/yum.repos.d 里新建个文件,就可以用CentOS的Repository了

 

[CentOS6]
name=CentOS-6-Base
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=0
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

 

参考:

http://www.tuxradar.com/answers/440

posted @ 2014-07-31 17:21  johnsonshu  阅读(264)  评论(0)    收藏  举报