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


Snodge said...

1. rpm -Uvh
2. rpm -Uvh
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!!!