使用yum命令时报错:

Existing lock /var/run/yum.pid.

Another app is currently holding the yum lock; waiting for it to exit...

The other application is: yum

解决方法:

删除yum的pid文件

rm -f /var/run/yum.pid

然后就可以正常使用yum命令了