本地YUM库与远程YUM库搭建
准备工作
安装createrepo_c
yum install createrepo_c -y
createrepo_c
工具用于生成yum库所需要的必要文件,使用方法如下:
createrepo_c /yum-path
yum-path
写你的yum路径
执行后会在/yum-path下生成一个repodata
文件夹
当YUM库中有新增软件时运行下面命令来更新repodata文件夹,否者软件将不会在可用列表展示
createrepo_c --update /yum-path
安装yum-utils
yum install yum-utils -y
yum-utils
工具用于下载rpm包,使用方法如下: