Update:
Alternatively, the process can additionally be blocked. If the previous method failed to kill the process or “zombie”- process still remained in the system, do the following (in my case server responds with just process PID: 9571):
# cat /var/run/yum.pid
We can see that there is another process with PID 9571. Let`s try to find out “who” it is:
#ps -ef | grep 9571
Output:
root 9571 9498 4 20:44 pts/1 00:00:03 /usr/bin/python /usr/bin/yum install nagios-plugins-ntp.x86_64
So, that was a process that tried to install the nagios-plugins-ntp package, but apparently something went wrong. If the process does not end, then this is again a “zombie”, we can do the same procedure:
#kill -9 9571
Posted from:https://botmaker.medium.com/solved-error-another-app-is-currently-holding-the-yum-lock-49be59d477a3