通过安装yum包时出现报错
[root@localhost ~]# yum -y install...省略
已加载插件:fastestmirror, langpacks
/var/run/yum.pid 已被锁定,PID 为 2623 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...
另一个应用程序是:PackageKit
内存:254 M RSS (1.5 GB VSZ)
已启动: Thu Dec 3 04:28:55 2020 - 06:23之前
状态 :睡眠中,进程ID:2623
只需把yum.pid删除即可
[root@localhost ~]# rm -f /var/run/yum.pid