http://mirror.nsc.liu.se/centos-store/7.3.1611/isos/x86_64/vim
1.上傳下載的鏡像源isocentos
2.掛載iso文件oop
#
mount -o loop -t iso9660 CentOS-7-x86_64-Everything-1511.iso /mnt
url
3.配置yumspa
# cd /etc/yum.repos.d/ # mkdir bak # mv *repo bak/ # vim local.repo
local.repo文件內容以下:3d
[iso] name=CentOS-7-x86_64-Everything-iso baseurl=file:///mnt gpgcheck=0 enabled=1
4.驗證code
# yum clean all # yum makecache