If your Yum is playing up and shows a Yum lock message you can't update or install anything the way to fix this is as follows:
rm -rf ./var/run/yum.pid
and then try what you was doing it should work fine.
If your Yum is playing up and shows a Yum lock message you can't update or install anything the way to fix this is as follows:
rm -rf ./var/run/yum.pid
and then try what you was doing it should work fine.