LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-11-2009, 05:59 AM   #1
Uday123
Member
 
Registered: Nov 2005
Posts: 80

Rep: Reputation: 15
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.
 
Old 11-11-2009, 06:17 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Uday123 View Post
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

Last edited by centosboy; 11-11-2009 at 06:18 AM.
 
Old 11-11-2009, 06:26 AM   #3
Uday123
Member
 
Registered: Nov 2005
Posts: 80

Original Poster
Rep: Reputation: 15
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?
 
Old 11-11-2009, 06:28 AM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Uday123 View Post
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
 
Old 11-13-2009, 10:16 AM   #5
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
You could also do a script with expect to automatically logon and run desired yum command, then logout.
 
Old 11-13-2009, 02:36 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
If you have yum-updatesd running and pointing(exclusively) to your local repo, it will handle it for you.
 
Old 11-13-2009, 03:29 PM   #7
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
apparently spacewalk does exactly this
 
Old 11-13-2009, 06:07 PM   #8
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by lazlow View Post
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Remote installation of rpm package (Using YUM) Uday123 Linux - Software 1 11-11-2009 06:31 AM
Non-root rpm package installation D-a-a-n Linux - Software 7 04-08-2009 12:52 PM
rpm package installation pelagic Linux - Software 3 09-09-2003 02:22 AM
rpm package installation DaDdY SnEb Linux - Newbie 3 06-19-2002 10:52 AM
RPM Package Installation Pimple Linux - General 5 03-15-2002 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:51 AM.

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