Re: one-shot yum command to match rpms between systems?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> On May 18, 2016, at 2:54 AM, Frank Cox <theatre@xxxxxxxxxxxxxxxxxxx> 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux