# run the following commands on the new slave, replacing X.X.X.X with the IP of the existing pool's master:
MASTER_IP=X.X.X.X
ssh root@"$MASTER_IP" rpm -qa | sort > master-rpms.txt
rpm -qa | sort > local-rpms.txt
# determine the list of RPM versions present in master but not in the current host
comm -23 master-rpms.txt local-rpms.txt | tee updates.txt
# check the contents of the three files, especially updates.txt
# then feed it to yum update
# 'yum install' with exact NVRAs updates installed packages AND installs missing ones
# 'yum install' with exact NVRAs updates installed packages AND installs missing ones
yum install $(cat updates.txt)
An older version of these instructions used `yum update` rather than `yum install`, but this didn't actually pin the versions of new packages pulled as dependencies. `yum install` fixes this.
An older version of these instructions used `yum update` rather than `yum install`, but this didn't actually pin the versions of new packages pulled as dependencies. `yum install` fixes this.