LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Remote installation of rpm package (Using YUM) (https://www.linuxquestions.org/questions/red-hat-31/remote-installation-of-rpm-package-using-yum-768385/)

Uday123 11-11-2009 05:59 AM

Remote installation of rpm package (Using YUM)
 
Hi,

I have configured YUM repository on a server and we have 10 linux machine (clients).

Is there any way we can install a package on all the 10 machines from YUM repository server?

Please help me.

centosboy 11-11-2009 06:17 AM

Quote:

Originally Posted by Uday123 (Post 3752761)
Hi,

I have configured YUM repository on a server and we have 10 linux machine (clients).

Is there any way we can install a package on all the 10 machines from YUM repository server?

Please help me.

yes.

add a file such as this to your /etc/yum.repos.d/ directory on all 10 clients

Code:

[repo name]
name=repo name & description
baseurl=http://host/path
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPMGPGKEY (if using gpgchecking)

and then on each client

Code:


yum install packagename


Uday123 11-11-2009 06:26 AM

Thanks. I know that but I have asked for the otherway.

Installing a package from YUM Repository server to Client machines. Is there any way we can do this with YUM?

centosboy 11-11-2009 06:28 AM

Quote:

Originally Posted by Uday123 (Post 3752786)
Thanks. I know that but I have asked for the otherway.

Installing a package from YUM Repository server to Client machines. Is there any way we can do this with YUM?


nope, but you can do it quite easily with puppet
Code:

http://reductivelabs.com/trac/puppet/
if you are prepared to learn the language ;)

DrLove73 11-13-2009 10:16 AM

You could also do a script with expect to automatically logon and run desired yum command, then logout.

lazlow 11-13-2009 02:36 PM

If you have yum-updatesd running and pointing(exclusively) to your local repo, it will handle it for you.

centosboy 11-13-2009 03:29 PM

apparently spacewalk does exactly this

DrLove73 11-13-2009 06:07 PM

Quote:

Originally Posted by lazlow (Post 3756074)
If you have yum-updatesd running and pointing(exclusively) to your local repo, it will handle it for you.

Errrr, to UPDATE or INSTALL the packege? Only way to INSTALL package with yum-updatesd (as far as I know) is to previosly install a fake package with wanted package as dependencies, and then to make new version of the fake packages with new dependence (new package you want to install).


All times are GMT -5. The time now is 05:41 AM.