解决redhat不能使用yml指令的问题

xiaoyuanbk / 2023-08-02 / 原文

yum remove subscription-manager

卸载redhat订阅提示,不然每次都提示你去注册This system is not registered to Red Hat Subscription Management

curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo

配置centos8的源

yum makecache

添加 Yum 官方库

### 添加 Yum 官方库 

sudo yum install yum-utils 

sudo rpm --import https://repo.clickhouse.com/CLICKHOUSE-KEY.GPG 

sudo yum-config-manager --add-repo https://repo.clickhouse.com/rpm/stable/x86_64