LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-21-2008, 11:07 PM   #1
m_w_sundaram
LQ Newbie
 
Registered: Feb 2004
Location: YERCAUD
Posts: 6

Rep: Reputation: 0
Cool Install an RPM automatically in all the machines connected via LAN through Server?


Hi

I have 40 linux boxes (fedora 6) and one server linux box(fedora 6).

I want to install a program (rpm or binarie)in all those
linux boxes automatically from the server.

I was trying with the help of expect & spawn utilities but
could not get.

The idea is:
A script should be able to upload files(rpms) to each box automatically
using sftp, execute the install commands(rpm -iUh file.rpm)and logout.

Could anyone help with this regard?

Thanks
 
Old 10-22-2008, 12:38 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
1st. I hope you know that support for FC6 was dropped almost 2 years ago (Fedora 10 should be released in Nov). Consider switching to Centos. Centos is RHEL with the logos removed. Free to install and updates for at least five years (as opposed to Fedora's 13 months).RHEL/Centos is currently on version 5.2.

Probably the easiest way out is to build an internal repo and set all the machines to auto update at midnight each day.

Quote:
[fred@localhost ~]$ yum info createrepo
Loaded plugins: priorities, protect-packages, protectbase
0 packages excluded due to repository protections
Installed Packages
Name : createrepo
Arch : noarch
Version : 0.4.11
Release : 2.fc8
Size : 185 k
Repo : installed
Summary : Creates a common metadata repository
URL : http://linux.duke.edu/projects/metadata/
License : GPLv2
Description: This utility will generate a common metadata repository from a
: directory of rpm packages.
 
Old 10-22-2008, 01:28 AM   #3
m_w_sundaram
LQ Newbie
 
Registered: Feb 2004
Location: YERCAUD
Posts: 6

Original Poster
Rep: Reputation: 0
How to setup repo

Thanks for immediate reply..
When I try this command I got the following error
Pls Help me

[maradnus@staff1 ~]$ yum info createrepo
Loading "installonlyn" plugin
Setting up repositories
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=u pdates-released-fc6&arch=i386 error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot find a valid baseurl for repo: updates


Thanks
 
Old 10-22-2008, 01:42 AM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
That is the problem with running a version beyond EOL (End Of Life). FC6 is so old that most of the repos are not supporting it any more.

Edit:

Even: http://download.fedora.redhat.com/pu...ra/linux/core/

Does not have packages for anything older than F7 anymore.

Last edited by lazlow; 10-22-2008 at 01:44 AM.
 
  


Reply

Tags
expect


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
How to connect two Linux Machines on same LAN but not in a Client Server Environment sheraz Linux - Newbie 1 05-27-2008 02:06 AM
Ubuntu server cannot access internet but LAN machines can. librano Linux - Server 2 05-13-2007 01:17 PM
want to know which sites/machines I am connected.. postiwala Linux - Networking 3 08-17-2006 12:34 AM
How can I install a rpm package and get the dependencies installed automatically? sceadu Fedora 10 01-06-2006 04:10 PM
when fedora machine is connected to the internet via network windiws machines cannot purbeck Linux - Networking 1 01-24-2004 07:50 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration