mount /dev/cdrom /mnt/把ISO挂载
把/etc/yum.repos.d/下面.repo文件先备份到其他地方
mv /etc/yum.repos.d/*.repo /tmp/
编辑新的yum源配置文件。
vi /etc/yum.repos.d/yum.repo
[mnt]
name=mnt
baseurl=file:///mnt
enabled=1
gpgcheck=0
因为是本地挂载,不涉及数字签名问题,设置gpgcheck=0,不检查数字签名
清除yum缓存并缓存安装包信息
yum clean all
yum makecache
然后就可以开开心心的使用yum安装了。
最后记得使用umount /mnt卸载光盘。
Copyright © 2013-2024 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号 粤公网安备 44200002445359号
增值电信业务经营许可证编号:B1-20222012
代理域名注册服务机构:西部数码