下载CentOS镜像
http://mirror.nsc.liu.se/centos-store/7.3.1611/isos/x86_64/
离线yum源的配置
1.上传下载的镜像源iso
2.挂载iso文件
#
mount -o loop -t iso9660 CentOS-7-x86_64-Everything-1511.iso /mnt
3.配置yum
# cd /etc/yum.repos.d/
# mkdir bak
# mv *repo bak/
# vim local.repo
local.repo文件内容如下:
[iso] name=CentOS-7-x86_64-Everything-iso baseurl=file:///mnt gpgcheck=0 enabled=1
4.验证
# yum clean all
# yum makecache