Solved

can I do yum installs in parallel ?

Posted on 2014-09-14
3
817 Views
Last Modified: 2014-09-15
Hello

I am trying to install  systems fast and often I run a batch file in the background to do most of my yum installs.

Problem is sometimes I need to install something simple and need it installed now, such as lftp.  If you try to do installs in parallel  I get error an error message ( I forget the message the moment )

Is there a way around this other than stopping, install my package and then restart ( and  adding a lot of time to the install process ) ?

redhat 5+
0
Comment
Question by:TIMFOX123
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 300 total points
Comment Utility
No, there isn't. YUM concurrent operations are not supported.

Not only that RPM (used by yum for installation) would  create an RPM database lock which inhibits other instances of RPM (called by yum) running against the RPM database,  but yum itself creates a lock to keep other yum instances from running in parallel. There is a yum config parameter (exit_on_lock) to tell the yum client whether to exit immediately or wait for the lock to be released. See "man 5 yum.conf" for details on the yum configuration. "5" is the manpage section, you remember?
0
 
LVL 61

Assisted Solution

by:gheist
gheist earned 200 total points
Comment Utility
You need to batch all the installs in one single command line. Probably you can install yum-downloadonly plugin, first schedule downloads overnight, then install will a snap in the morning.
0
 

Author Closing Comment

by:TIMFOX123
Comment Utility
Hello WMP

I had to ask, and needed to verify the answer.  

gheist has perhaps a work around.  

Thank you both.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now