linux切換倉庫下載新版軟件

  • Centos/RedHat7/6/5切換阿里雲源並安裝EPEL/IUS/REMI倉庫CentOS安裝完畢後,默認的yum源是國外的,國內訪問速度很慢,須要切換爲國內的源,這裏選用的是阿里雲的源。此外,一些經常使用的倉庫,如epel和ius,最好也一併安裝了。切換基本源爲阿里雲源備份mv/etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.backup下載新的CentOS-Base.repo到/etc/
  • Centos/RedHat 7/6/5切換阿里雲源並安裝EPEL/IUS/REMI倉庫 

    CentOS安裝完畢後,默認的yum源是國外的,國內訪問速度很慢,須要切換爲國內的源,這裏選用的是阿里雲的源。此外,一些經常使用的倉庫,如epel和ius,最好也一併安裝了。html


    切換基本源爲阿里雲源 
    備份 
    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 
    下載新的CentOS-Base.repo 到/etc/yum.repos.d/

    CentOS 5centos


    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo 

    CentOS 6緩存


    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo 

    CentOS 7阿里雲


    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 
    安裝第三方源 
    安裝EPEL倉庫 
    yum install -y epel-release 

    若是以上命令不起做用:centos7

     

    CentOS/RHEL 7htm


    rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm 

    CentOS/RHEL 6rem


    rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 

    CentOS/RHEL 5get


    rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm 
    安裝IUS倉庫 
    RHEL 

    RHEL 5it


    rpm -Uvh https://rhel5.iuscommunity.org/ius-release.rpm 

    RHEL 6軟件


    rpm -Uvh https://rhel6.iuscommunity.org/ius-release.rpm 

    RHEL 7


    rpm -Uvh https://rhel7.iuscommunity.org/ius-release.rpm 

     


    CentOS 

    CentOS 5


    rpm -Uvh https://centos5.iuscommunity.org/ius-release.rpm 

    CentOS 6


    rpm -Uvh https://centos6.iuscommunity.org/ius-release.rpm 

    CentOS 7


    rpm -Uvh https://centos7.iuscommunity.org/ius-release.rpm 
    安裝REMI倉庫 

    CentOS/RHEL 7


    rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm 

    CentOS/RHEL 6


    rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 

    CentOS/RHEL 5


    rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm 
    查看yum軟件倉庫列表 
    yum repolist 
    生成緩存 
    yum makecache
  • 以上是Centos/RedHat 7/6/5切換阿里雲源並安裝EPEL/IUS/REMI倉庫的內容,更多 阿里 倉庫 切換 安裝 CentOS redhat 雲源並 EPELremi IUS 的內容,請您使用右上方搜索功能獲取相關信息
相關文章
相關標籤/搜索