zoukankan      html  css  js  c++  java
  • Run "yum repolist all" to see the repos you have.

    1. Centos7执行 yum -y install wget
    [root@localhost yum.repos.d]# yum -y install wget
    已加载插件:fastestmirror
    There are no enabled repos.
     Run "yum repolist all" to see the repos you have.
     To enable Red Hat Subscription Management repositories:
         subscription-manager repos --enable <repo>
     To enable custom repositories:
         yum-config-manager --enable <repo>
    [root@localhost yum.repos.d]# yum –help
    已加载插件:fastestmirror
    [root@localhost yum.repos.d]# yum
    已加载插件:fastestmirror
    您需要给出命令
    Usage: yum [options] COMMAND
    

    解决方案

    1. http://mirrors.163.com/.help/centos.html

    1. 先备份源
    • mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
    1. 下载 http://mirrors.163.com/.help/centos.html 放入到 /etc/yum.repos.d/
    2. 执行
    • yum clean all
    • yum makecache
    1. 下载成功
    [root@localhost yum.repos.d]# yum -y install wget
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
    正在解决依赖关系
    --> 正在检查事务
    ---> 软件包 wget.x86_64.0.1.14-18.el7_6.1 将被 安装
    --> 解决依赖关系完成
    
    依赖关系解决
    
    =====================================================================================================================================================================================
     Package                                 架构                                      版本                                                源                                       大小
    =====================================================================================================================================================================================
    正在安装:
     wget                                    x86_64                                    1.14-18.el7_6.1                                     base                                    547 k
    
    事务概要
    =====================================================================================================================================================================================
    安装  1 软件包
    
    总下载量:547 k
    安装大小:2.0 M
    Downloading packages:
    wget-1.14-18.el7_6.1.x86_64.rpm                                                                                                                               | 547 kB  00:00:00     
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      正在安装    : wget-1.14-18.el7_6.1.x86_64                                                                                                                                      1/1 
      验证中      : wget-1.14-18.el7_6.1.x86_64                                                                                                                                      1/1 
    
    已安装:
      wget.x86_64 0:1.14-18.el7_6.1 
    
  • 相关阅读:
    网络七层模型
    border-radius 50% 和100%
    数据绑定
    前端一些基础的重要的知识2
    用 ul 和 li 模拟select控件
    两列布局
    盒子的水平垂直居中几种方法
    TCP时间戳
    帧聚合
    skb buff数据结构
  • 原文地址:https://www.cnblogs.com/Twittery/p/14523790.html
Copyright © 2011-2022 走看看