yum进程被占用

使用yum安装软件的时候出现,/var/run/yum.pid 已被锁定,PID 为 6503 的另一个程序正在运行的问题

[root@localhost mysql]# yum install gcc gcc-c++ cmake ncurses-devel bison
已加载插件:fastestmirror, langpacks
/var/run/yum.pid 已被锁定,PID 为 6503 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for itto exit...
另一个应用程序是:PackageKit
内存: 31 M RSS (361 MB VSZ)
已启动: Sat Jun 22 14:39:13 2019 - 00:04之前
状态 :运行中,进程ID:6503
Another app is currently holding the yum lock; waiting for itto exit...
另一个应用程序是:PackageKit
内存: 46 M RSS (375 MB VSZ)
已启动: Sat Jun 22 14:39:13 2019 - 00:06之前
状态 :运行中,进程ID:6503

解决办法:

vim   /etc/yum/pluginconf.d/fastestmirror.conf

enabled=1 改为enabled=0

重启服务器

原文地址:https://www.cnblogs.com/lulin9501/p/11068814.html