因为CentOS是RHEL的完整重新编译版本(版本号需对应),所以RHEL是一定可以用CentOS的
yum源的。
若安装了多个yum源,可以安装yum-fastestmirror软件,以实现自动选择最快的源,即
#yum install yum-fastestmirror -y
安装时注意需将yum源文件放于/etc/yum.repos.d/目录下,文件名以.repo结尾即可
安装完成后执行
#yum clean all 或者 yum makecache 用以清除缓存文件
以下为中科大的CentOS6的更新源
#CentOS-Base.rentOS-Base.repo
[base]
name=CentOS-$releasever - Base
baseurl=
gpgcheck=1
gpgkey=
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
#[addons]
#name=CentOS-$releasever - Addons
#baseurl=
#gpgcheck=1
#gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=
下面是搜狐的:
[base]
name=CentOS-$releasever - Base
baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=
下面是网易163的源:
# CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
baseurl=
gpgcheck=1
gpgkey=
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=
gpgcheck=1
gpgkey=
#packages used/produced in the build but not released
#[addons]
#name=CentOS-$releasever - Addons
#baseurl=
#gpgcheck=1
#gpgkey=
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=
gpgcheck=1
gpgkey=
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=
gpgcheck=1
enabled=0
gpgkey=
阅读(1837) | 评论(0) | 转发(0) |