safing & restoring the gnupg key with command-line

hello dear all, good day dear OpenSuse-experts

i have to do some emergency-rescue of the data on a opensuse-based notbook

i have to do some safing & restoring - especially of the gnupg key with command-line.

i have a** ID-number **of the key that i am looking for: 55555BxyC

note: i have * only one user on the notebook so i have to

  • take a live-dvd and login with this user onto the [live-]system **
  • do some search for the ID of the gnupg-key: so in other words i can do some search for the above mentioned ** ID-number **of the key that i am looking for: 55555BxyC

**** btw**; i do the following: with the Live-System i create (or set up) a user with the corresponding UID and look for the corresponding home-directory, with that i can do some backup.

question: is this true: !? can i do some search for the ID-number!?

GPG keeps keys in ~/.gnupg directory by default, so you can simply save it. You can also export keys in ASCII armored format (plain text) that can be imported anywhere later using “gpg --export” and “gpg --export-secret-keys”.