配置第三方yum

 
 
配置YUM源优先级(适用于当同时配置本地和在线源)

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

//下载Centos 6在线源


yum -y install epel-release		//安装第三方YUM源

yum install yum-plugin-priorities	//安装优先级控制插件

vim /etc/yum.repos.d/local.repo		//配置本地源

[local]
baseurl=file:///media
gpgcheck=0
enabled=1
priority=x	//配置优先级,数字越小优先级越高


猜你喜欢

转载自blog.csdn.net/qq_39336574/article/details/80620167