Friday, April 25, 2008

» List RPM keys you trust

Here's how to get a list of the GPG keys you have (and hence trust) in RPM's keyring:
rpm -qa --nodigest --nosignature \ --qf '%{VERSION}-%{RELEASE} %{SUMMARY}\n' \ gpg-pubkey\* \ | sed 's/ gpg(/ /;s/)$//'
If you want to remove a key from the RPM keyring, take the first field from the list above (represented by HASH below) and
rpm -e gpg-pubkey-HASH
(the above has obviously to be performed as root) As blogged by Duncan, Ladislav added a window in openSUSE 11.0's YaST2 to manage those keys in a much more user-friendly way.

Labels: ,

1 Comments:

Blogger DimiG said...

If needs to find PGP PUBLIC KEY with name 'NAME' is possible to use:

rpm -qai "*gpg*" | grep -A 20 NAME

13:50  

Post a Comment

<< Home