LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-31-2012, 11:36 PM   #1
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
how to download multiple pkg using yum in parallel


iam download some rpm online through yum .but only single yum command run.ie.

#yum -y perl* httpd* vim*

if now i wish to run yum again in parallel , in new treminal, it didnot run
it error..

Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum


i require to run yum while it runing in terminal
 
Old 01-31-2012, 11:44 PM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
I don't know if you should try this or not but to get rid of it here is what you need to do

Code:
#rm -rf /var/run/yum.pid (pid)
and then try to install on another terminal

but you can always use this command to install multiple packages at once instead of using multiple terminals

Code:
#yum install httpd vsftpd samba dhcp *** *** ***
 
Old 01-31-2012, 11:54 PM   #3
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
removing pid will terminate the current process....i dont want to terminate current installing/downloading yum.....

i know to use yum install 1 2 3 3 4 55 6 ******....
when my this installation is running in the same time i want to install another using yum in another terminal ..how can i do this.
 
Old 02-01-2012, 12:05 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
check the no. of process when you are trying to install any package from different terminal

like the one I did in mine

Code:
#yum install dhcp 
(in progress)
on different terminal
Code:
#ps -aux | grep yum
ps -aux | grep yum
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root      2902  0.0  1.1  24440 11456 ?        S    Jan30   0:00 /usr/bin/python         /usr/sbin/yum-updatesd
root     10874  1.5  1.9  29676 19176 pts/1    S+   07:53   0:00 /usr/bin/python         /usr/bin/yum install dhcp
root     10914  0.0  0.0   3892   660 pts/4    R+   07:54   0:00 grep yum
Code:
#rm -rf /var/run/yum.pid  2902
and yum is working on both terminals simultaneously
 
Old 02-01-2012, 12:34 AM   #5
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
thanks
 
Old 02-01-2012, 12:39 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
If you got your solution please mark the thread as "solved"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] parallel download MODYSAMA Linux - Newbie 5 02-03-2011 07:34 AM
advance sed to remove multile lines. ufmale Linux - Newbie 8 05-14-2010 09:44 AM
yum pkg install failure - url timeout claudiog Fedora 1 07-09-2008 01:45 PM
where to download the pkg and to install veeraalin Solaris / OpenSolaris 1 06-17-2005 03:13 AM
can't download pkg-config?...newer version needed... breezewax Linux - Software 1 09-06-2004 10:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration