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

Matthew Miller mattdm at mattdm.org
Wed May 18 17:49:15 UTC 2016


On Wed, May 18, 2016 at 11:39:10AM -0600, Frank Cox wrote:
> > ( rpm -qa --qf '%{name}.%{arch}\n' | sort | diff --old-line-format='install %
> > L' --new-line-format='remove %L' -unchanged-line-format='' list.txt - ; echo
> > run ) | yum shell
> This looks pretty much like what I had in mind.
> Great!  Thanks!

Let me know if it works. :)

-- 
Matthew Miller
<mattdm at fedoraproject.org>
Fedora Project Leader



More information about the CentOS mailing list