Backup all Yum repos and packages on CentOS 5 server?
772
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?
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.
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.
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.
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 viarpm -qa | sort -n > rpmlisting.txt
and work from there.