当前位置:网站首页>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
边栏推荐
- 八大排序总是忘?快来这里~
- 【剑指offer】---数组中的重复数字
- Error: Rule can only have one resource source (provided resource and test + include + exclude)
- Parallels 将扩展桌面平台产品,以进一步改善在 Mac 上运行 Windows 的用户体验和工作效率
- List集合
- PEST 分析法
- 普林斯顿微积分读本05第四章--求解多项式的极限问题
- ICML 2022 | 基于随机注意力机制的可解释可泛化图学习
- OpenStack-related commands that need to be recorded _ self-use
- Second half of 2011 System Architect Afternoon Paper II
猜你喜欢
随机推荐
强意识 压责任 安全培训筑牢生产屏障
第三方软件测评有什么作用?权威软件检测机构推荐
统信 UOS V20 专业版(1050update2)发布:文件共享、全局搜索等优化
the height of the landscape
2012年下半年 系统架构设计师 下午试卷 II
如何完成新媒体产品策划?
重要通知 | “移动云杯”算力网络应用创新大赛初赛延期!!
ES5和SE6来实现一个Promise效果
Summary of Force Buckle Solution 640 - Solving Equations
Open source SPL wipes out tens of thousands of database intermediate tables
写不完的数学试卷-----试卷生成器(Qt含源码)
1004 (tree array + offline operation + discretization)
快速了解大端模式和小端模式
王学岗—————————哔哩哔哩直播-手写哔哩哔哩硬编码录屏推流(硬编)(26节课)
【Gazebo入门教程】第三讲 SDF文件的静/动态编程建模
Error: Rule can only have one resource source (provided resource and test + include + exclude)
Lithium battery technology
IT小白怎么系统的php学习
Send a post request at the front desk can't get the data
开源SPL消灭数以万计的数据库中间表