createrepo构建本地软件源包含 createrepo-0.9.9-28.el7.noarch.rpm deltarpm-3.6-3.el7.x86_64.rpm python-deltarpm-3.6-3.el7.x86_64.rpm
用于创建本地仓库
安装 createrepo**:
unzip createrepo-0.9.9-28.el7.zip
cd createrepo/
rpm -ivh deltarpm-3.6-3.el7.x86_64.rpm python-deltarpm-3.6-3.el7.x86_64.rpm createrepo-0.9.9-28.el7.noarch.rpm
在有网环境下下载安装包后(yum install yum-plugin-downloadonly -y yourpkgname),复制安装包到离线集群上,在目录下使用createrepo . 创建repo,然后在/etc/yum.repos.d/下配置repo之后yum makecache即可使用yum离线安装.
1