虚拟机挂载光盘,同时修改yum源为光盘挂载目录
VMware下挂载光盘并安装文件
https://blog.csdn.net/gfd54gd5f46/article/details/53968293
linux修改yum本地源的方法
https://www.cnblogs.com/cfinder010/p/3347019.html
sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
sudo vi /etc/yum.repos.d/CentOS-Base.repo 配置yum源为本地的/mnt目录
[base]
name=yum
gpgcheck=0
enabled=1
baseurl=file:///mnt
挂载光盘到/mnt目录下
mount /dev/cdrom /mnt
执行命令:
yum clean all
yum makecache
yum -y install lrzsz