whatis gpg

GPG (GnuPG)

Also known as: GnuPG, PGP, OpenPGP

GNU Privacy Guard, the OpenPGP tool used to encrypt files and to sign and verify software, packages, and Git commits.

What Is GPG (GnuPG) in Linux?

GPG uses public-key cryptography. Anyone can encrypt to your public key or verify your signatures, while only your private key decrypts and signs.

On Linux its biggest everyday job is invisible: package managers verify every downloaded package against the distro's GPG keys. You also use it to verify ISO downloads and in tools like pass and SOPS.

Example

gpg --verify ubuntu.iso.gpg SHA256SUMS
gpg -c secrets.txt