1、查看当前iso的路径
将安装CentOS虚机的iso设置为yum源
2、创建iso的repo源文件夹路径
将安装CentOS虚机的iso设置为yum源
3、将iso挂载到该repo源文件夹
将安装CentOS虚机的iso设置为yum源
4、将其它的repo源移走,只留下iso的repo源
将安装CentOS虚机的iso设置为yum源
将安装CentOS虚机的iso设置为yum源
5、设置repo源查找路径
# cd /etc/yum.repos.d/cos76
# touch cos76.repo
# vim cos76.repo
[base]
name=CentOS-$releasever - Base
gpgcheck=0
将安装CentOS虚机的iso设置为yum源
6、清理缓存与建立缓存
# yum clean all && yum makecache

相关文章:

  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2021-09-04
相关资源
相似解决方案