When trying to install some packages using yum, sometimes we get this error:
Existing lock /var/run/yum.pid: another copy is running as pid 5191.
In this post, we’ll see how can we fix it.
To fix this problem, it’s easy: open /var/run/yum.pid and remove that pid number from the file.
echo > /var/run/yum.pid