How do I put my keyring in a different directory?
GnuPG keeps several files in a special homedir directory. These include the options file, pubring.gpg, secring.gpg, trustdb.gpg, and others. GnuPG will always create and use these files. On unices, the homedir is usually ~/.gnupg; on Windows it is name “gnupg” and found below the user’s application directory. Run the gpg and pass the option –version to see the name of that directory.