I tried to install some packages on Centos by issuing yum commands. When I am trying yum command, I got an error message. Another app is currently holding the yum lock See the below Image.
I could not run the yum commands due to yum lock error. So I went to the /var/run directory and there was a file called yum.pid. I opened it and remove the Number of pids inside the file.Saved it and issued youm commands !
It Works !
Second one is you can grep process that hold the yum lock. Issues following command.
ps aux | grep yum
Get the process id and kill them by using following command.
kill -9 process_id
It really Works to kill yum lock !
0 comments:
Post a Comment
Ask anything about this Tutorial.