Solved

can I do yum installs in parallel ?

Posted on 2014-09-14
3
909 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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Suggested Solutions

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

821 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