1.通过虚拟机-设置添加CD/DVD 对应系统版本iso文件
2.创建挂载点:mkdir /root/linux
3.挂载:mount -o loop /dev/cdrom /root/linux
4.cd /etc/yum.repo.d/,vi local.repo,内容如下:
[myyum]
name=olinux Myyum
baseurl=file:///root/linux/Server
enabled=1
gpgcheck=1
gpgkey=file:///root/linux/RPM-GPG-KEY-oracle
5.配置DNS,vi /etc/resolve.conf,内容如下:
nameserver 114.114.114.114
nameserver 8.8.8.8
6.yum grouplist