zoukankan      html  css  js  c++  java
  • yum源

    镜像地址  http://mirrors.aliyun.com/centos/

    1.1 yum源   软件仓库  国外===国内

    国内常见的软件仓库地址/yum源

    1阿里云  mirrors.aliyun.com   打开网址选择epel---------help

    2清华

    如何修改mirrors.aliyun.com

    a  备份系统当前的yum

    [root@oldboyedu45-xy ~]# ls -l /etc/yum.repos.d/

    total 24

    -rw-r--r--. 1 root root 1991 Mar 28  2017 CentOS-Base.repo

    -rw-r--r--. 1 root root  647 Mar 28  2017 CentOS-Debuginfo.repo

    -rw-r--r--. 1 root root  289 Mar 28  2017 CentOS-fasttrack.repo

    -rw-r--r--. 1 root root  630 Mar 28  2017 CentOS-Media.repo

    -rw-r--r--. 1 root root 7989 Mar 28  2017 CentOS-Vault.repo

    [root@oldboyedu45-xy ~]#

    [root@oldboyedu45-xy ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

    b更改替换系统当前的yum源

    [root@oldboyedu45-xy ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

    --2018-02-09 09:32:55--  http://mirrors.aliyun.com/repo/Centos-6.repo

    Resolving mirrors.aliyun.com... 183.203.23.238, 183.203.23.234, 183.203.23.240, ...

    Connecting to mirrors.aliyun.com|183.203.23.238|:80... connected.

    HTTP request sent, awaiting response... 200 OK

    Length: 2572 (2.5K) [application/octet-stream]

    Saving to: “/etc/yum.repos.d/CentOS-Base.repo”

     

    100%[===================================>] 2,572       --.-K/s   in 0s      

     

    2018-02-09 09:32:55 (110 MB/s) - “/etc/yum.repos.d/CentOS-Base.repo” saved [2572/2572]

    c检查

    [root@oldboyedu45-xy ~]# yum repolist

    Loaded plugins: fastestmirror, security

    Loading mirror speeds from cached hostfile

     * base: mirrors.aliyun.com

     * extras: mirrors.aliyun.com

     * updates: mirrors.aliyun.com

    repo id            repo name                                           status

    base               CentOS-6 - Base - mirrors.aliyun.com                6,706

    extras             CentOS-6 - Extras - mirrors.aliyun.com                 47

    updates            CentOS-6 - Updates - mirrors.aliyun.com               945

    repolist: 7,698

    [root@oldboyedu45-xy ~]#

    系统默认的yum源

    base     

    extras

    updates

     

    增加新的yum源,增加些软件仓库 mirrors.aliyun.com

    epel

    1备份

    2下载

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

    3检查  yum repolist

     

    完成之后检查下:

    [root@oldboyedu45-xy ~]# yum repolist

    Loaded plugins: fastestmirror, security

    Loading mirror speeds from cached hostfile

     * base: mirrors.aliyun.com

     * epel: mirrors.aliyun.com

     * extras: mirrors.aliyun.com

     * updates: mirrors.aliyun.com

    repo id       repo name                                             status

    base          CentOS-6 - Base - mirrors.aliyun.com                   6,706

    epel          Extra Packages for Enterprise Linux 6 - x86_64        12,457

    extras        CentOS-6 - Extras - mirrors.aliyun.com                    52

    updates       CentOS-6 - Updates - mirrors.aliyun.com                  950

    repolist: 20,165

    [root@oldboyedu45-xy ~]#

  • 相关阅读:
    UITableView多选全选
    iOS16进制设置颜色
    svg矢量图
    canvas 时钟案例
    canvas 方块旋转案例
    canvas万花筒案例
    swiper(轮播)组件
    canvas介绍(画布)
    scroll-view组件
    view组件
  • 原文地址:https://www.cnblogs.com/xy51/p/11177596.html
Copyright © 2011-2022 走看看