I'm spinning up a new CentOS 5 server and to save some time I'd like to use the same repos and packages as installed on another CentOS 5 server. Is anyone aware of a systematic or best practice method to doing so?

I appreciate the help.

link|improve this question

80% accept rate
feedback

2 Answers

up vote 1 down vote accepted

Check out DevStructure's blueprint. It'll reverse-engineer your server's setup and packages and generate one massive bash script to replay all that on a new server.

link|improve this answer
I've installed it and giving it a try. Looks very useful. I'll have some feedback in an hour, thanks! – DeLongey Sep 26 '11 at 21:27
1  
I found blueprint to be a breeze and very helpful and portable. Thanks it's a great find! – DeLongey Sep 26 '11 at 21:51
feedback

You could examine the original system's kickstart file generated during installation. That should reside in /root/anaconda-ks.cfg and will show some of the basics of the installed system. You could also look at the repo files in /etc/yum.repos.d to get an idea of the enabled repos. Finally, you can get an rpm listing from the original server via rpm -qa | sort -n > rpmlisting.txt and work from there.

link|improve this answer
Interesting I'll examine the kickstart file since blueprint proposed by ceejayoz doesn't seem to go that far. Otherwise blueprint is very systematic. Thanks! – DeLongey Sep 26 '11 at 21:51
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.