On May 18, 2016, at 2:54 AM, Frank Cox theatre@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