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

Wed May 18 17:02:18 UTC 2016
Noam Bernstein <noam.bernstein at nrl.navy.mil>

> On May 18, 2016, at 2:54 AM, Frank Cox <theatre at melvilletheatre.com> wrote:
> 
> 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?

It wouldn’t be a one liner except in the most general sense that you can string multiple bash commands with “;”,  but I’m sure someone can do something clever with uniq(1).

						Noam