How to import an existing key in GPG

Tue Jan 7 16:43:02 2003

On Tuesday 07 January 2003 05:58, Vin wrote:

> I imported an existing GPG key to another GPG environment but I am
> not able to use it for the decryption, it gives an error that the
> "secret key is not available".
> Do I need to export the existing key in some special way and import
> it with any different command so that the secret key is also
> imported in the new GPG and I am able to use the old key.

Did you export your secret key?

gpg --export-secret-key uid > filename