A GPG key is only as good as your plan for the day you lose it. If the private key leaks or the laptop dies, a revocation certificate is how you tell the world to stop trusting that key. The nice surprise: modern GnuPG makes one for you the moment you create a key.
ls ~/.gnupg/openpgp-revocs.d/
gpg --output revoke.asc --gen-revoke [email protected]
The gpg manual says --generate-key creates a revocation certificate next to the key and stores it in openpgp-revocs.d below the GnuPG home directory. Each file there is named after the fingerprint of the key. The second command makes a fresh one by hand (--generate-revocation is the long name), and it lets you pick a reason, such as the key being compromised.
Copy that folder to something that isn’t the same disk, like an encrypted USB stick or your password manager. The GnuPG docs even suggest printing it. If the laptop is stolen, the copy inside ~/.gnupg goes with it.
Using it later: import the certificate with gpg --import, then publish the revoked key, for example with --send-key to a keyserver or by sending the exported key to the people who use it.
Two caveats. The stored file has a colon in front of the five dashes of the BEGIN line, on purpose, so nobody imports it by accident. Remove that colon with a text editor before you use it. And treat the file as a secret: the GnuPG manual warns that anyone who can read it can revoke your key. They can’t sign anything with it, but they can kill your key on the keyservers.
Further reading: GnuPG manual: OpenPGP key management, GnuPG manual: configuration files