一、安装启动httpd服务
# yum install -y httpd
# systemctl start httpd
# systemctl enable httpd
二、创建存放软件包的目录
# cd /var/www/html
# mkdir soft
三、将软件包放到创建的目录下
四、创建repository仓库
# yum install -y createrepo
# cd /var/www/html
# createrepo soft
五、配置yum源文件
# cd /etc/yum.repos.d/
# vim my.repo
[soft]
name=soft
baseurl=http://ip地址/soft/
enabled=1
gpgcheck=0
六、更新yum
# yum clean all
# yum makecache