LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to Install package in 15 Server at a time. (https://www.linuxquestions.org/questions/linux-server-73/how-to-install-package-in-15-server-at-a-time-4175504412/)

Aneesh.T .S 05-09-2014 01:52 AM

How to Install package in 15 Server at a time.
 
Hi Friends,

Nearly I had an interview with wipro technologies.

The interviewer asked one question about packages installation.

He has a package for Redhad server and he want to install this packages with in 15-20 server at a time.

So,How can we install this package with out going in front of the the server and need to install this package at a time on 15-20 system.


Friends,If you know answer kindly share with me.

skimeer 05-09-2014 03:54 AM

Well there are many ways,

1.If yum repo is enabled on all machines, simply copy your rpm in repo and call yum install <your rpm name> on each machine through ssh.
2.Copy .rpm file on each machine through SSH and execute rpm -ivh remotely.

TenTenths 05-09-2014 04:02 AM

Make use of an automated deployment solution like Puppet to make future deployments easier.

btmiller 05-10-2014 10:25 AM

If you have the correct host keys set up securely you could use any one of a number of distributed ssh scripts to issue one command to all the servers (there's also the classic "SSH in a for loop solution" ;-)). However, I second the use of Puppet or something similar for configuration management. There are also tools like Spacewalk that can push packages to remote machines from a central console.

voleg 05-11-2014 05:45 AM

And traditional answer missing: Call to Redhad service, they will sell you RHN satellite.

DJ Shaji 05-11-2014 11:13 AM

Depends on the package I suppose. Are you building it from source? Are you instaling it from redhad repos? Is it an update? Is it oart of regular maintenance or a one time specific install? Puppet seems overkill for one package install.


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