美文网首页
Linux配置网络YUM源

Linux配置网络YUM源

作者: CloudFlyKing | 来源:发表于2021-01-05 11:31 被阅读0次

    若yum下载的时候出现了如下报错

    [root@MiWiFi-R3600-srv root]#  yum install ftp
    已加载插件:product-id, refresh-packagekit, search-disabled-repos, security, subscription-manager
    This system is not registered with an entitlement server. You can use subscription-manager to register.
    
    

    可通过配置网络yum 源RHEL7.2解决

    [root@MiWiFi-R3600-srv root]#  wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    [root@MiWiFi-R3600-srv root]#  sed -i 's/$releasever/7/g' /etc/yum.repos.d/CentOS-Base.repo
    [root@MiWiFi-R3600-srv root]#  yum clean all
    [root@MiWiFi-R3600-srv root]#  yum list
    

    相关文章

      网友评论

          本文标题:Linux配置网络YUM源

          本文链接:https://www.haomeiwen.com/subject/jkmioktx.html