Skip to content

Instantly share code, notes, and snippets.

@dandye
Created March 18, 2016 22:26
Show Gist options
  • Save dandye/0fa4aef43679835f4d20 to your computer and use it in GitHub Desktop.
Save dandye/0fa4aef43679835f4d20 to your computer and use it in GitHub Desktop.
pretty print versions of RPMs matching a query (for `diff`ing two systems)
rpm -qa --queryformat "%{RPMTAG_NAME}\n" | \
grep soltra-edge | \
sort | \
xargs -I {} \
rpm -qa --queryformat "%-60{RPMTAG_NAME} \
%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}\n" {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment