vi /etc/yum.repos.d/CentOS-Base.repo
[base]
name=local repo
baseurl=http://yum.aisino.as/CentOS6.9/x86_64/
enabled=1
gpgcheck=0
[extra]
name=extra repo
baseurl=http://yum.aisino.as/CentOS6.9/extra/
enabled=1
gpgcheck=0
[updates]
name=update repo
baseurl=http://yum.aisino.as/CentOS6.9/update/
enabled=1
gpgcheck=0
保存后执行
yum clean all
yum makecache