All Linux HowTo's

Install Yum Packages From a List

This article shows how to easily take a list of installed YUM packages from one server and then install those same packages on another server.

Get the list of installed packages from the source server:

rpm -qa --queryformat "%{NAME}\n" > ~/yum.list

Copy that list file (~/yum.list) to the target server and the run the following command:

xargs yum install < ~/yum.list

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.