Skip to content

Instantly share code, notes, and snippets.

@carlwgeorge
Created March 29, 2017 13:09
Show Gist options
  • Select an option

  • Save carlwgeorge/d011397bf2a2dfdc8fdcb9dc5eefa250 to your computer and use it in GitHub Desktop.

Select an option

Save carlwgeorge/d011397bf2a2dfdc8fdcb9dc5eefa250 to your computer and use it in GitHub Desktop.
import rpm
# optionally set an alternate gpg path
#rpm.addMacro('_gpg_path', '/other/gpg/path')
# set this macro to the key name or fingerprint
rpm.addMacro('_gpg_name', 'my key')
# sign it
rpm.addSign('foo.rpm', 'super secret gpg passphrase')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment