Tag Archives: Another app is currently holding the yum lock; waiting for it to exit…

[Solved] Another app is currently holding the yum lock; waiting for it to exit…

When downloading in CentOS, you use Yum most of the time, but sometimes you will report the following error when using Yum:

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

You can literally understand that there are other apps holding the lock of Yum and waiting for it to exit… You can choose to wait for it to exit slowly, but most people want to get the right to use Yum immediately. Then you can execute the following command to forcibly close the yum process:

rm -f /var/run/yum.pid

Then use Yum happily

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

How did “people you might know” find you on social software>>>

During the development process, you need to use the yum command. Sometimes you will report the following error when executing yum

Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  48 M RSS (443 MB VSZ)
    Started: Thu Mar 26 09:47:03 2020 - 00:23 ago
    State  : Running, pid: *****

Cause analysis: Yum can only support one routine. If one routine is already running, others must wait for the process to exit and release the lock. In this case,
can be restored with the following command:

rm -f /var/run/yum.pid

Record –

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

 

Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 153 M RSS (266 MB VSZ)
    Started: Thu Jul 12 00:03:05 2012 - 06:17 ago
    State  : Sleeping, pid: 4018
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 153 M RSS (266 MB VSZ)
    Started: Thu Jul 12 00:03:05 2012 - 06:19 ago
    State  : Sleeping, pid: 4018

Solution:

rm -rf /var/run/yum.pid 

To forcibly unlock, and then your Yum is ready to run