Sometimes when you use yum upgrade some of the files, the following occurs:
another app is currently holding the yum lock; waiting for it to exit …
Can be forced off the yum processes:
[code lang=”bash”]# rm -f /var/run/yum.pd[/code]
Then you can use yum command.