zoukankan      html  css  js  c++  java
  • redhat配置centos的源

    抄袭于:http://jingyan.baidu.com/article/6d704a13f0d61128db51ca82.html?qq-pf-to=pcqq.temporaryc2c

    我们在redhat中使用yum命令的时候,可能会遇到这种情况,yum install build-essential提示This system is not registered with RHN,然后yum安装失败。下面分享一下解决办法。

    1. Redhat之所以会出现这个错误是因为没有注册RHN,我们只需要更新一下yum的源就可以了。使用命令 cd /etc/yum.repos.d/   进入yum的配置目录。

    2.  

      在终端中输入 wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo 命令,下载CentOS- Base.repo文件。

      解决This system is not registered with RHN
    3.  

      然后将原有的rhel-debuginfo.repo备份一下,使用命令mv CentOS-Base.repo rhel-debuginfo.repo,将CentOS- Base.repo重命名成rhel-debuginfo.repo。

    4. 4

      成功以后,使用yum install build-essential安装成功。

      配置源成功就可以想安装啥就安装啥(没有ubuntu的源资源多)

  • 相关阅读:
    HNOI2003 消防局的设立
    APIO2007 风铃
    SDOI2006 保安站岗
    消息传递
    [POI2008]STA-Station
    JLOI2015 城池攻占
    BOI2004 sequence
    Monkey King
    APIO2012 Dispatching
    HTML meta 文本 格式排版 链接图表 列表 表单 frame后台布局实例
  • 原文地址:https://www.cnblogs.com/csun/p/5036638.html
Copyright © 2011-2022 走看看