Monday, August 17, 2015

Duplicating Yum-based installation

Very handy if you need to duplicating installed software on yum-based Linux.
Perfect for upgrade from old hardware to newer or you just need a list of installed software. You can even upgrade specific packages on the same Linux Box in the same way.

Make list of installed software:

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

Copy installed_packages.txt to new Linux Box and run

yum -y install $(cat installed_packages.txt)