自建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

posted @ 2019-11-21 09:38  浪tslite  阅读(380)  评论(0编辑  收藏  举报