Solved

can I do yum installs in parallel ?

Posted on 2014-09-14
3
871 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
ID: 40322223
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 62

Assisted Solution

by:gheist
gheist earned 200 total points
ID: 40322541
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
ID: 40322926
Hello WMP

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

gheist has perhaps a work around.  

Thank you both.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

770 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