zoukankan      html  css  js  c++  java
  • rhel7配置腾讯centos的base/epel源

    问题:

      rhel系统设置国内源,加速包的下载及依赖解析!

    [root@bogon ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 7.0 (Maipo)

    腾讯软件源

    https://mirrors.cloud.tencent.com/

    解决:

    [root@bogon ~]# cd /etc/yum.repos.d/

    [root@bogon yum.repos.d]# rm -rf   //清理存在xxx.repo

    [root@bogon yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo

    [root@bogon yum.repos.d]# sed -i 's#$releasever#7#g' CentOS-Base.repo   ###替换了,不然路径不对

    [root@bogon yum.repos.d]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-7.repo

    [root@bogon yum.repos.d]# sed -i 's#$releasever#7#g' epel.repo
    [root@bogon yum.repos.d]# yum clean all && yum makecache

    [root@bogon yum.repos.d]# yum repolist
    Loaded plugins: langpacks
    repo id repo name status
    epel/x86_64 EPEL for redhat/centos 7 - x86_64 13,199
    extras/x86_64 Qcloud centos extras - x86_64 335
    os/x86_64 Qcloud centos os - x86_64 10,097
    updates/x86_64 Qcloud centos updates - x86_64 1,487
    repolist: 25,118

  • 相关阅读:
    团队作业四
    团队作业五
    团队作业三
    团队作业二
    起名真麻烦
    网络桌面前景与范围文档
    PSP软件需求分析文档
    psp软件需求分析
    psp个人系统开发需求分析
    天猫网站的项目前景与文档
  • 原文地址:https://www.cnblogs.com/xiaochina/p/12423872.html
Copyright © 2011-2022 走看看