As the original user, use the following command to export all public keys to a base64-encoded text file:
gpg -a --export > mypubkeys.asc
Use the following command to export all encrypted private keys (which will also include corresponding public keys) to a text file:
gpg -a --export-secret-keys > myprivatekeys.asc