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?

link|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
feedback

2 Answers

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.

link|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
feedback

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..

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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