Want to make one server like another? Here’s at least the beginning of an answer.
First you need to make a list of packages on the “template” machine (the one you want the other machine to look like).
rpm -qa | grep 'perl-' >pkg-list.txt rpm -qa | grep 'php' >>pkg-list.txt
You get the idea.
Then copy the list to the other server and run yum with this syntax:
yum install `cat pkg-list.txt`
Pretty neat, eh?
(sorry, just practicing my Canadian English)