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


Popular posts from this blog

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

Reduce (shrink) and resize raw disk at Proxmox

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