Move gpg2 keyring to a different location

gpg2 keyring in a new location

I had to move my gpg2 keyring on my system to a different partition. How would gpg2 know the location of my keyring? Set environment variable GNUPGHOME to the path to the keyring. If cmd.exe is open, reopen cmd.exe.

gpg2 keyring