Skip to content

Instantly share code, notes, and snippets.

@trevor-vaughan
Created January 9, 2015 20:05
Show Gist options
  • Save trevor-vaughan/36662c660fd434e4e0cf to your computer and use it in GitHub Desktop.
Save trevor-vaughan/36662c660fd434e4e0cf to your computer and use it in GitHub Desktop.
Find Unsigned Packages in a RPM repository
for file in `find . -name "*.rpm"`; do rpm -qip $file 2>/dev/null | grep -qe "Signature.*(none)" && echo $file; done
@mohag
Copy link

mohag commented Feb 21, 2018

Version without using a loop:
find . -name "*.rpm" -exec bash -c 'rpm -qip {} 2>/dev/null | grep -qe "Signature.*(none)"' \; -print

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment