Fix Existing lock /var/run/yum.pid: another copy is running

Archived discussion · New replies are closed.

If you run:

yum update

and get an error like this:

Loaded plugins: fastestmirror, priorities Existing lock /var/run/yum.pid: another copy is running as pid 15740. Another app is currently holding the yum lock; waiting for it to exit… The other application is: yum-updatesd-he Memory : 10 M RSS ( 16 MB VSZ) Started: Tue Jul 10 08:19:02 2012 - 614 day(s) 21:47:09 ago State : Sleeping, pid: 15740 Another app is currently holding the yum lock; waiting for it to exit… The other application is: yum-updatesd-he Memory : 10 M RSS ( 16 MB VSZ) Started: Tue Jul 10 08:19:02 2012 - 614 day(s) 21:47:19 ago State : Sleeping, pid: 15740

This usually happens because another yum command is already running. Check for running yum commands with: ps ax | grep -i yum Output:

root 12875 0.0 0.5 26456 10620 ? SN Jun23 0:00 /usr/bin/python -tt /usr/sbin/yum-updatesd root 15740 0.0 0.6 24224 12800 ? Ss 20:58 0:14 /usr/bin/python /usr/bin/yum update -y root 25799 0.0 0.0 4128 608 pts/0 S+ 21:48 0:00 grep yum

This shows yum commands running with PIDs 12875 and 15740. Use kill to terminate those processes, as shown below: kill -9 12875 kill -9 15740 Or use killall: killall -9 yum

EOF.← Back to articles