linux 中yum命令提示Another app is currently holding the yum lock; waiting for it to exit... 已解决

背景:使用yum erase 进行卸载任务,

页面提示:Another app is currently holding the yum lock; waiting for it to exit...

分析:已经有了一个yum进程在运行,所以yum在锁定状态中。(使用kill去干掉,无法干掉)

方法:强制干掉yum进程:rm -f /var/run/yum.pid(解决后,yum命令可正常使用)

原文地址:https://www.cnblogs.com/iruance/p/12899412.html