centos 7 建立本地yum

mkdir /home/media

mout -t iso9660 -o loop /home/soft/Centos.iso /home/media

 

 vi /etc/yum.repos.d/CentOS7-Localsource.repo

 

[CentOS7-Localsource]
name=CentOS7
baseurl=file:///home/media
enabled=1
gpgcheck=0

改名备份 

mv etc/yum.repos.d/CentOS-Base.repo bak

 

#yum clean all

#yum makecache

posted on 2020-12-10 12:10  alantop  阅读(108)  评论(0编辑  收藏  举报