当前位置:网站首页>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
边栏推荐
- AWS Security Fundamentals
- 普林斯顿微积分读本05第四章--求解多项式的极限问题
- OpenStack-related commands that need to be recorded _ self-use
- 池化技术有多牛?来,告诉你阿里的Druid为啥如此牛逼!
- Unfinished mathematics test paper ----- test paper generator (Qt includes source code)
- SenseTime self-developed robotic arm, the first product is an AI chess-playing robot: Guo Jingjing is also invited as an endorsement
- IT小白怎么系统的php学习
- PCL 最小二乘拟合空间曲线
- Cloud Migration Practice of Redis
- usb转rs485测试软件,usb转rs485「建议收藏」
猜你喜欢

laravel 抛错给钉钉

Cloud Migration Practice of Redis

MySQL - storage engine for databases
Existing in the rain of PFAS chemical poses a threat to the safety of drinking water

win2012安装Oraclerac失败

laravel throws the error to Dingding

统信 UOS V20 专业版(1050update2)发布:文件共享、全局搜索等优化

Alibaba的秒杀系统—千亿级并发设计手册上线了

进程和计划任务管理

【Gazebo入门教程】第三讲 SDF文件的静/动态编程建模
随机推荐
【MinIO】工具类使用
符合信创要求的堡垒机有哪些?支持哪些系统?
OpenStack-related commands that need to be recorded _ self-use
Alibaba的秒杀系统—千亿级并发设计手册上线了
基于ArcGIS水文分析、HEC-RAS模拟技术在洪水危险性及风险评估
王学岗—————————哔哩哔哩直播-手写哔哩哔哩硬编码录屏推流(硬编)(26节课)
面试面到了一个腾讯30k出来的,有见识到何为精通MySQL调优
PHP judges whether the file has content, and if there is no content, copy another file to write
关于已拦截跨源请求CORS 头缺少 ‘Access-Control-Allow-Origin‘问题解决
How does vue clear the tab switching cache problem?
PyTorch 多机多卡训练:DDP 实战与技巧
这一次,话筒给你:向自由软件之父斯托曼 提问啦!
Summary of Force Buckle Solution 640 - Solving Equations
Calculate the number of combinations recursively
Classifying irises using decision trees
AWS Security Fundamentals
记录几道整型提升的题目
使用决策树对鸢尾花进行分类
【MinIO】Using tools
Drive IT Modernization with Low Code