Monday, March 07, 2005

Useful yum command:

Syncronize your yum archive with a previously updated similar host. Dead simple but I thought I'd share.

rsync -uavz -e ssh remote:/var/cache/yum/ /var/cache/yum

3 comments:

Snodge said...

1. rpm -Uvh http://ftp.heanet.ie/pub/cAos/centos/4/os/i386/CentOS/RPMS/yum-2.2.0-1.centos4.2.noarch.rpm
2. rpm -Uvh http://ftp.heanet.ie/pub/cAos/centos/4/os/i386/CentOS/RPMS/centos-release-4-0.1.i386.rpm
3. yum update

Should probably work similarly for other RH based distro's too...

nic said...

It was just to cut down on the network bandwidth of updating two RHL 7.3 boxes.

Box a: yum update

Sync /var/cache/yum between a and b.

Box b: yum update

Trivial but something worth remembering.

nic said...

Unless you were expecting me to update all our boxes to CentOS!!!