tools/centos-mirror-tools/show_imported_rpm_gpg_keys.sh
Dean Troyer 62bd0253f0 Add build tools
This includes Docker containers to perform the StarlingX build
and a set of scripts to maintain a local mirror of binary CentOS
and other packages required to populate the final ISO file.

Change-Id: I8140fd8fa2d00e7aa98c895a8e4962ab3748669d
2018-06-08 17:01:43 -05:00

21 lines
712 B
Bash
Executable File

echo "!! This script dumps all GPG keys added by \"rpm --import\"."
echo "!! it also lists out all keys' fingerprints, so that you can "
echo "!! cross-check with info at \"https://www.centos.org/keys/\""
echo ""
echo "-------------------- Start ----------------------------"
all_imported_keys="./all_imported_keys.txt"
echo "dump imported keys into $all_imported_keys"
# dump all RPM GPG keys we've already imported.
rpm -qi gpg-pubkey-\* > $all_imported_keys
# list fingerprint for each of keys we've imported
all_keys="`find /etc/pki/rpm-gpg -type f -name "RPM-GPG-KEY*"`"
for key in $all_keys;do
gpg --quiet --with-fingerprint $key
done
echo "-------------------- Done ----------------------------"