[CentOS] one-shot yum command to match rpms between systems?
Jonathan Billings
billings at negate.orgWed May 18 17:16:04 UTC 2016
- Previous message: [CentOS] one-shot yum command to match rpms between systems?
- Next message: [CentOS] one-shot yum command to match rpms between systems?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, May 18, 2016 at 12:54:51AM -0600, Frank Cox 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?
I'd probably turn it into a puppet manifest or ansible playbook, and
use that to install the packages. I'd not use rpm -qa unadorned,
though, but rpm -qa --qf "%{NAME}.%{ARCH}\n".
--
Jonathan Billings <billings at negate.org>
- Previous message: [CentOS] one-shot yum command to match rpms between systems?
- Next message: [CentOS] one-shot yum command to match rpms between systems?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list