source: dass-tools/usr/bin/rpm-gpg-list.sh@ 1194

Last change on this file since 1194 was 1077, checked in by joergs, on Aug 17, 2012 at 4:48:38 PM

advanced version of rpm-gpg-list

  • Property svn:executable set to *
File size: 522 bytes
Line 
1#!/bin/bash
2
3# rpm -qa --nodigest --nosignature --qf "%{NAME}-%{VERSION}-%{RELEASE} %{SUMMARY}\n" gpg-pubkey*
4#
5# rpm -q gpg-pubkey-88efc20d-49510a33 --qf "%{DESCRIPTION}" | gpg --with-fingerprint
6
7KEY="$1"
8
9KEYS="`rpm -qa gpg-pubkey*`"
10
11if [ "$KEY" ]; then
12 key=`tr [A-Z] [a-z] <<< $KEY`
13 KEYS=`grep -- "-$key-" <<< "$KEYS"`
14fi
15
16LANG=C
17for key in $KEYS; do
18
19 rpm -q --nodigest --nosignature --qf "\n%{NAME}-%{VERSION}-%{RELEASE}\n" $key
20
21 rpm -q $key --qf "%{DESCRIPTION}" | gpg --with-fingerprint
22
23done
Note: See TracBrowser for help on using the repository browser.