CentOS7制作本地yum源 1、安装依赖包 yum install httpd createrepo -y 2、关闭防火墙 service iptables stop 3、启动httpd服务 ## 网页能够访问 http://ip/test service httpd start 4、准备需要的rpm包 将所有的rpm包放到 网页能够访问的目录下,也就是 /var/www/html/test 5、执行如下命令,创建源 ## 在 test 目录中执行 createrepo . ## 创建源 ## 更新rpm后执行 createrepo --update . ##