yum源搭建

1.搭建局域网yum源

1.首先部署web环境
2.在/var/www/html下创建iso
3.mount -o loop 镜像文件 /vat/www/html/iso
4.在/etc/yum.repos.d/下新建repo文件
[network]
name=network
baseurl=http://192.168.244.113/iso
enabled=1
gpgcheck=0
5.yum clean all
yum makecache

2.搭建本地yum源

1.mount /dev/sr0 /mnt
2.在/etc/yum.repos.d/下新建repo文件
[local]
name=local
baseurl=file:///mnt
enabled=1
gpgcheck=0
3.yum clean all
yum makecache

发布了10 篇原创文章 · 获赞 0 · 访问量 407

猜你喜欢

转载自blog.csdn.net/Student_xx/article/details/104109111