Automatic update of keyring

Dave Chapeskie
Sun Sep 9 12:54:01 2001

Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Sep 08, 2001 at 09:00:28PM +1000, David wrote:

> On Sat, 08 Sep 2001, =C5smund Skj=E6veland wrote:
> > Is there a way to automatically update my keyring every now and then,
> > to make sure I get all new signatures and revocations?
> Someone posted a shell script to the mailing list a while back,
> somewhere around June 11. The script is called I guess
> you'll probably need to wade through the archives to find it.
Yes, please search the archives before posting questions. My solution wasn't a convoluted shell script but a single command that can be put into a shell alias. On Wed, Jun 13, 2001 at 01:18:33PM -0400, Dave Chapeskie wrote:
> Subject: Re: Refreshing PGP keys
> Just do something like:
> gpg --with-colons --fast-list-mode --list-keys \
> | awk -F: '$1=3D=3D"pub" {print $5}' | sort | uniq \
> | xargs -n 20 gpg --recv-keys
Of course you could replace the "sort | uniq" with just "sort -u". To put it into a ~/.cshrc or ~/.tcshrc file as an alias you'll need to escape the single quotes like this: alias gpg-update-all 'gpg --with-colons --fast-list-mode --list-keys | awk -F: '\''$1=3D=3D"pub" {print $5}'\'' | sort -u | xargs -n 20 gpg --recv-keys' --=20 Dave Chapeskie OpenPGP Key KeyId: 3D2B6B34 --XsQoSWH+UP9D9v3l Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iEYEARECAAYFAjubSZMACgkQWqkc/T0razSQnQCeKYIqjcvDLk9D/fpPAG2SqkRS w2EAnjxcccCT40cIrDlw6qObB9PZ9Ume =oHxh -----END PGP SIGNATURE----- --XsQoSWH+UP9D9v3l--