Skip to content

Instantly share code, notes, and snippets.

@gonter
Created November 16, 2011 14:07
Show Gist options
  • Save gonter/1370137 to your computer and use it in GitHub Desktop.
Save gonter/1370137 to your computer and use it in GitHub Desktop.
create a RPM inventory list in CSV format
#!/bin/sh
# prepare a CSV of currently installed RPM packages
echo "NAME;VERSION;RELEASE"
rpm -qa --queryformat "%{NAME};%{VERSION};%{RELEASE}\n" | sort -t\; -k 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment