Duplicating linux installation using yum (install the same packages on other server)



Get list of installed RPMs on your box:

yum list installed |tail -n +3|cut -d' ' -f1 > installed_packages.txt

 
Install packages onto new server:
yum -y install $(cat installed_packages.txt)

That`s all

found at: http://unix.stackexchange.com/questions/71/duplicating-a-linux-installation-yum-based

Comments

Popular posts from this blog

How to clean DB from old logs in Magento 1.x

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

Apache 2.4 + mod_wsgi + Python 3.7 + Django installation on Centos 7.10