Duplicating a Yum-based Linux installation

You can create a list of the installed software with:

$ rpm -qa > installed-software.log

Since they are based on different distros, I am not sure how you would do the install.

If I was copying it to a fresh install of the same distro, I would run the following command as root

# yum -y install $(cat /home/user/installed-software.log)

Get list of installed RPMs on your RHEL box:

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

Install packages onto Fedora:

yum -y install $(cat installed_packages.txt)

Note: Fedora is the R&D project for RHEL and you should be able to install most of these packages in Fedora.

Steves method lists version numbers and you want to avoid that.


You can try Kickstart or you may want to set up a PXE install/boot server for multiple distros. Or if some of your machines are diskless you can try LTPS method (this is what is generally called - thin client - IIRC), also see here

EDIT: If that's the case see this

Tags:

Yum