[CentOS] one-shot yum command to match rpms between systems?

Wed May 18 06:54:51 UTC 2016
Frank Cox <theatre at melvilletheatre.com>

Given a list of rpms on one system (rpm -qa > list.txt), is there a one-shot command that I can run on another system to remove all of the rpms not listed and add any that are on the list and not present on the second system?

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com