Created
January 9, 2015 20:05
-
-
Save trevor-vaughan/36662c660fd434e4e0cf to your computer and use it in GitHub Desktop.
Find Unsigned Packages in a RPM repository
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
for file in `find . -name "*.rpm"`; do rpm -qip $file 2>/dev/null | grep -qe "Signature.*(none)" && echo $file; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version without using a loop:
find . -name "*.rpm" -exec bash -c 'rpm -qip {} 2>/dev/null | grep -qe "Signature.*(none)"' \; -print