Go Back   The UNIX and Linux Forums > Operating Systems > Linux


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-15-2010
rd42's Avatar
Registered User
 
Join Date: May 2010
Posts: 13
Thanks: 8
Thanked 0 Times in 0 Posts
Yum update/install script

Any one know of a way to do a yum -install and draw the argument of what to install from a text file?

I have a huge list of rpms that I have to install on a bunch of machines and I would like to run one script that goes to each machine and installs all rpms in the list I have.
Sponsored Links
    #2  
Old 06-15-2010
verdepollo's Avatar
Registered User
 
Join Date: Mar 2010
Location: Mexico
Posts: 622
Thanks: 11
Thanked 82 Times in 80 Posts
Like this?


Code:
yum -y install $(cat list)

Sponsored Links
    #3  
Old 06-15-2010
rd42's Avatar
Registered User
 
Join Date: May 2010
Posts: 13
Thanks: 8
Thanked 0 Times in 0 Posts
Totally!

Thanks!
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Folder Update Script koti_rama Shell Programming and Scripting 2 06-08-2010 10:36 AM
After update Solaris version, HBA driver still need to install? SmartAntz Solaris 1 02-25-2010 03:08 AM
script to update the stats gsiva Shell Programming and Scripting 4 11-02-2009 10:30 PM
Shell Script: want to insert values in database when update script runs ring Shell Programming and Scripting 1 10-25-2007 03:06 AM



All times are GMT -4. The time now is 12:11 PM.