Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When there are more than 1 copies of yum running, I get this error:

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

Is there a way to make yum just exit the first time it can't get the lock rather than stay open waiting for it?

share|improve this question
Yum is open source so I can say with 100% certainty yes you can, how to do it though is a matter of talking to a dev. – Chris Sep 4 '10 at 11:54

I don't think there's a specific command option to do that. You could use the -R option to specify the maximum amount of time that yum will wait, but it's specified in minutes so you'd have to wait at least a minute.

share|improve this answer
Yeh, I had seen that option, I was just hoping there was some configuration option that I had missed to stop yum from doing it at all – David Reynolds May 4 '10 at 10:06

You do not want to do this..

There is a reason it needs a lock and it waits..

The problem with package managers, is that they need to be run only once because of the dependancies of other packages...

You will most probably run into serious concurrency problems if you do this..

Its highly suggested you dont change this in the code...

"ctl + c" will solve your problem..

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.