Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 2 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.

share|improve this answer
    
I've installed it and giving it a try. Looks very useful. I'll have some feedback in an hour, thanks! –  crockpotveggies 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! –  crockpotveggies Sep 26 '11 at 21:51

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.

share|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! –  crockpotveggies Sep 26 '11 at 21:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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