当前位置:网站首页>redhat替换yum源时redhat.repo无法删除或无法禁用的问题解决方法
redhat替换yum源时redhat.repo无法删除或无法禁用的问题解决方法
2022-08-10 14:13:00 【老王博客z】
question1 :无法使用yum
dnf makecache
Loaded plugins: fastestmirror, product-id, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Cleaning repos: base extras updates
Cleaning up everything
question2:无法使用第三方源
执行dnf
命令后,查看yum.repos.d/
目录下刚刚重命名为redhat.repo.bak
的repo又自动生成了一个redhat.repo
这个redhat.repo
一直无法删除,执行dnf
命令后又会出现,如果你在redhat.repo
中写了enabled=0
在执行yum
命令后,最终会保留你的注释,而你添加的enabled=0
会被删掉。
[[email protected] yum.repos.d]# ls
CentOS-Base.repo redhat.repo redhat.repo.bak
Solution
经过查找,发现是redhat自带的插件subscription-manager导致。这个插件的作用就是Red Hat Subscription Manager订阅管理,就是它让你一直register
找到subscription-manage的配置文件/etc/yum/pluginconf.d/subscription-manager.conf
vim subscription-manager.conf
[main]
enabled=0 #将它禁用掉就可以了、
BLOG : My BLOG
边栏推荐
- 2022年五大云虚拟化趋势
- MySQL - storage engine for databases
- 易观分析联合中小银行联盟发布海南数字经济指数,敬请期待!
- 从洞察到决策,一文解读标签画像体系建设方法论
- AWS Security Fundamentals
- Open source SPL wipes out tens of thousands of database intermediate tables
- 开源SPL消灭数以万计的数据库中间表
- PHP judges whether the file has content, and if there is no content, copy another file to write
- 电脑重装系统提示activex部件不能创建对象如何解决
- 1W word detailed thread local storage ThreadLocal
猜你喜欢
随机推荐
PHP 判断文件是否有内容,没有内容则复制另一个文件写入
How to code like a pro in 2022 and avoid If-Else
Vivado crashes or the message is not displayed
第三方软件测评有什么作用?权威软件检测机构推荐
串口服务器调试助手使用教程,串口调试助手使用教程【操作方式】
1004(树状数组+离线操作+离散化)
leetcode 739. Daily Temperatures 每日温度(中等)
“国资云”和“国家云”能给市场带来怎样的变革?
1W word detailed thread local storage ThreadLocal
一汽奥迪:持续34年聚焦品质与体验 立足市场需求推进产品迭代
antd组件中a-modal设置固定高度,内容滚动显示
awk的简单使用
Circle 创始人回应美财政部禁止 Tornado :隐私与安全之间关系紧张
Existing in the rain of PFAS chemical poses a threat to the safety of drinking water
ES5和SE6来实现一个Promise效果
领域驱动实践总结(基本理论总结与分析V+架构分析与代码设计+具体应用设计分析)
2011年下半年 系统架构设计师 下午试卷 II
numpy.meshgrid()理解
字节终面:CPU 是如何读写内存的?
IT小白怎么系统的php学习