What to do if yum update is forced to terminate

If you force quit yum update, the message “Another app is currently holding the yum lock; waiting for it to exit…” may appear and you may not be able to update. message will appear and you may not be able to update. This occurs because yum is locked.

In such a situation, the following steps can solve the problem

  1. Kill the process in question. The command is “kill [process ID]”. The process ID can be confirmed with the top command, for example.
  2. Delete the yum pid file. The command is “rm -f /var/run/yum.pid”. This will unlock yum.
  3. Execute “yum update” again. At this time, the update should start successfully.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top