创建本地repository仓库

一、安装启动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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容