Created
November 16, 2011 14:07
-
-
Save gonter/1370137 to your computer and use it in GitHub Desktop.
create a RPM inventory list in CSV format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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