ls /tools/other
createrepo /tools/other
ls /tools/other
vim /etc/yum.repos.d/rhel7.repo
追加写入
[myrpm]
name=myrpm
baseurl=file:///tools/other
enabled=1
gpgcheck=0
验证
yum repolist:
验证
追加写入
[myrpm]
name=myrpm
baseurl=file:///tools/other
enabled=1
gpgcheck=0
验证
验证