Solved

can I do yum installs in parallel ?

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

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

911 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

21 Experts available now in Live!

Get 1:1 Help Now