How to create GNUPGHOME

Hauke Laging mailinglisten at hauke-laging.de
Sun Mar 23 17:37:21 CET 2014


Am So 23.03.2014, 15:21:05 schrieb wish at dumain.com:
> I want to create an empty GNUPGHOME directory in a non-standard
> location into which I can import existing keys (both private and
> public).  What is the best way to do this?

export GNUPGHOME=/foo/bar
mkdir --mode=700 -p "$GNUPGHOME"
gpg --list-keys
...
unset GNUPGHOME


or
mkdir --mode=700 -p /foo/bar
GNUPGHOME=/foo/bar gpg --list-keys


Hauke
-- 
Crypto für alle: http://www.openpgp-schulungen.de/fuer/unterstuetzer/
http://userbase.kde.org/Concepts/OpenPGP_Help_Spread
OpenPGP: 7D82 FB9F D25A 2CE4 5241 6C37 BF4B 8EEF 1A57 1DF5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20140323/90d77a68/attachment.sig>


More information about the Gnupg-users mailing list