RHEL yum: Unable to read consumer identity
修改两个文件:
vim /etc/yum/pluginconf.d/product-id.conf
vim /etc/yum/pluginconf.d/subscription-manager.conf
[main]
enabled=0 #这里由1改为0
保存并退出,执行命令如下命令,清空缓存:
yum clean all
然后执行命令:
yum -y update
详见:https://blog.csdn.net/qq_16209077/article/details/50562405 RHEL yum: Unable to read consumer identity
CentOS8配置阿里云yum源
第一步:备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
第二步:下载Centos-8.repo
# wget
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
# curl
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
第三步:生成缓存
yum makecache
详见:https://blog.csdn.net/liyelool/article/details/108431951 CentOS8配置阿里云yum源
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达,在下面评论区告诉我^_^^_^