yum源服务器 地址 192.168.89.100/24
root@yum-server:yum install httpd
root@yum-server:systemctl enable --now httpd
root@yum-server :mkdir /var/www/html/centos/8 -pv
root@yum-server:mount /dev/sr0 /mnt/
root@yum-server:cp -a /mnt/* /var/www/html/centos/8
root@yum-server:dnf reposync --repoid=extras --download-metadata -p /var/www/html/centos
yum客户端配置
root@yum-client:vim /etc/yum.repos.d/test.repo
[BaseOS]
name=BaseOS
原文:https://www.cnblogs.com/ty111/p/15179090.html