1. 程式人生 > >yum源優先級

yum源優先級

media file OS cat nbsp IE gin sta repo

1.修改Yum源的優先級

yum install yum-plugin-priorities.noarch

2. 啟用插件

cat /etc/yum/pluginconf.d/priorities.conf

[main]

enabled = 1

3. 修改本地Yum源優先使用

cat CentOS-Media.repo

[c7-media]

name=CentOS-$releasever - Media

baseurl=file:///media/cdrom/

gpgcheck=0

enabled=1

priority=1

#priority 數字越小優先級越高

yum源優先級