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 |
|
---|
7 | KEY="$1"
|
---|
8 |
|
---|
9 | KEYS="`rpm -qa gpg-pubkey*`"
|
---|
10 |
|
---|
11 | if [ "$KEY" ]; then
|
---|
12 | key=`tr [A-Z] [a-z] <<< $KEY`
|
---|
13 | KEYS=`grep -- "-$key-" <<< "$KEYS"`
|
---|
14 | fi
|
---|
15 |
|
---|
16 | LANG=C
|
---|
17 | for 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 |
|
---|
23 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.