How do I install the same RPM packages on a new server as an old?


First you need a list of the packages on the old server.

rpm -qa --qf "%{NAME}\n" > rpmlist.txt

 

Copy this file to the new server (for example using SSH).

 

To bulk install all of the packages installed on the old server

yum install `cat rpmlist.txt|tr '\n' ' '`

 

You should then be prompted to install all packages missing on the new server.

Tags: copy, install, rpm, ssh, yum
Last update:
2015-08-24 22:14
Author:
Chris Burton
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category

Tags