How to create new keyring from an existing key in an existing keyring?

Peter Lebbing peter at
Mon Aug 12 11:18:23 CEST 2013

On 11/08/13 23:11, adrelanos wrote:
> I could think of a way to export the key, change --homedir, create a new
> keyring, and import a the key. But is there a more elegant way?

gpg --export 0xDEADBEEF | gpg --no-default-keyring --keyring \
/etc/apt/trusted.gpg.d/meat.gpg --import

(one long command line)



I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at <>

More information about the Gnupg-users mailing list