Knowledgebase:
Another app is currently holding the yum lock; waiting for it to exit...
Posted by Paul Nesbitt, Last modified by Paul Nesbitt on 12 October 2016 07:46 AM

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

When you run yum you may encounter this message if something has gone wrong with yum, maybe the last time you ran it you broke out of it while it was running and now you are getting this error when you try to use it again.

Well as the error suggests another process is holding onto yum and it is not letting go preventing you from running yum

To locate the process causing this issue run the following command in ssh - ps aux | grep -i yum which will provide information as below:

[root@s01 ~]# ps aux | grep -i yum
root     26216  2.1  2.9 500712 55628 pts/0    T    08:34   0:02 /usr/bin/python /usr/bin/yum install kernel-devel -y
root     26339  0.0  0.0 103312   912 pts/0    S+   08:36   0:00 grep -i yum

As you see from above all the processes to do with yum are grepped and shown for your perusal!

Looking at the two processes (26216 and 26339) I can see the top process is the one we are interested in and the one below is a result of us running ps aux | grep -i yum

So if you go ahead and kill the process involved which in this example is 26216 but obviously that will differ in yours.

[root@s01 ~]# kill -9 26216

And that should be it, run yum again and the issue should be cleared.

Thanks

Paul Nesbitt
PAC Web Hosting

(1 vote(s))
Helpful
Not helpful

Comments (0)