1.挂在ISO镜像
2.安装yum源软件包
rpm -ivh createrepo-0.9.9-17.el6.noarch.rpm deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm |
3.修改配置文件
vi /etc/yum.repos.d/rhel-source.repo [Server] baseurl=file:///var/www enabled=1 gpgcheck=0 |
4.复制ISO镜像的RPM软件包
cp -R Packages /var/www cp -R repodata /var/www |
5.创建数据仓库
createrepo -g /var/www/repodata/repomd.xml /var/www |