mkdir -p /data/yum yumdownloader --resolve --destdir=/data/yum make
yum install createrepo -y cd /data/yum createrepo .
[local-repo] name=local-repo baseurl=file:///data/yum enabled=1 gpgcheck=0 priority=1
yum repolist all