自建yum仓库,该仓库为默认仓库
YUM REPO:
http://content.example.com/rhel7.0/x86_64/dvd
创建自建yum REPO文件:
vim /etc/yum.repos.d/redhat.repo
[localrepo]
name = localrepo
baseurl = http://content.example.com/rhel7.0/x86_64/dvd
enabled = 1
gpgcheck = 0
清除缓存:
yum clean all
列出可用的yum源
yum repolist