zoukankan      html  css  js  c++  java
  • redhat8 更改yum源

    redhat安装完成后是不能直接使用yum安装的,会提示我们没有注册,所以要修改成Centos的源
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

    这里使用阿里云Centos8yum源
    cd /etc/yum.repos.d/
    下载阿里云yum源
    curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
    将redhat源名称修改
    mv redhat.repo redhat.repo_bak

    这个时候我们已经可以使用阿里云yum源了,但是还是会有注册提示,可以忽略
    我们可以通过修改以下两个文件的Enable=0来禁用Subscription Management提示
    vi /etc/yum/pluginconf.d/product-id.conf
    vi /etc/yum/pluginconf.d/subscription-manager.conf

    yum clean all
    yum makecache

  • 相关阅读:
    111
    实验 12 综合练习二
    实验 11结构体
    作业 5 指针应用1
    实验 10 指针2
    实验9 指针1
    实验8 数组2
    实验7
    321
    实验9-2
  • 原文地址:https://www.cnblogs.com/coolruo/p/13881820.html
Copyright © 2011-2022 走看看