yum卸载的时候要带上参数 "--nodeps"
今天通告的一个误操作,说DBA在生产上yum安装了一个MySQL,后面又觉得版本不合适,直接yum remove了,导致服务故障异常。
复盘是因为,yum remove的时候不单是把他安装的MySQL给卸载了,还把MySQL涉及到的依赖给卸载了。缺乏这些依赖,导致服务器上其他服务异常。
说明:
To remove a package and its dependencies using yum, you can use the "--nodeps" option. This will remove the specified package without removing any of its dependencies.
Here is an example of how to use the "--nodeps" option with yum:
yum remove <package_name> --nodeps
Replace "<package_name>" with the name of the package you want to remove.
It is important to note that removing dependencies can cause issues with other packages that rely on those dependencies. Therefore, it is generally recommended to only use the "--nodeps" option if you are certain that the dependencies are no longer needed and will not cause any issues.
=====================================================
rpm -e包名 --nodeps
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· AI与.NET技术实操系列(六):基于图像分类模型对图像进行分类
2022-03-28 mysql8.0 arm 安装