Linux雲主機(離線)搭建本地yum源

下載CentOS鏡像

http://mirror.nsc.liu.se/centos-store/7.3.1611/isos/x86_64/vim

離線yum源的配置

1.上傳下載的鏡像源isocentos

2.掛載iso文件oop

 # mount -o loop -t iso9660 CentOS-7-x86_64-Everything-1511.iso /mnturl

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
相關文章
相關標籤/搜索