[TriLUG] updating multiple systems at once w/ yum
jonc at nc.rr.com
Fri Feb 6 09:25:35 EST 2004
On Fri, 2004-02-06 at 09:03, Douglas Kojetin wrote:
> Hi All-
> I have a few very similar systems (almost exactly the same in hardware
> specs, and the same RedHat 9 packages installed) with which I would
> like to utilize some sort of update protocol (I use 'yum') so I would
> not have to download packages more than once (i.e. download package to
> one system, and use them or transfer to the others systems).
> Could anyone offer any links and/or instructions to help me set
> something up ... or point me in a certain direction?
> Many thanks,
You could run a Current server but that is a bit much for just a few
servers... I run a box with rsync pointing at a local mirror (for RedHat
Updates), then I manually load that "Update" directory via NFS to my
other servers and run:
rpm -F *.rpm
After a minute or two all my rpms are up-to-date on the server, and I
unmount the drive and drop nfs.
All this could easily be done in a cron job:
# assuming I've already opened a path through
# both firewalls to allow NFS traffic between
# the two servers:
mount foo.bar.com:/home/RedHat/rh9 /mnt/rh9
echo "Running RH9 updates on server: Foo"
rpm -Fv *.rpm
If I put that script in the root's cron table on a server that would
update my server each time it was run and send a status message to the
root user of the server.
If you need help setting up nfs please see:
I hope that is helpful - Jon Carnes
More information about the TriLUG