Gpg Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS
Maintainer: Debian GnuPG Maintainers
Email: [email protected] .
Website: https://www.gnupg.org/
Section: utils
Install gpg
-
Debian
apt-get install gpgClick to copy -
Ubuntu
apt-get install gpgClick to copy -
Alpine OS
apk add gnupgClick to copy -
Arch Linux
pacman -S gnupgClick to copy -
Kali Linux
apt-get install gpgClick to copy -
CentOS
yum install gpgClick to copy -
Fedora
dnf install gnupgClick to copy -
Raspbian
apt-get install gnupgClick to copy -
macOS
brew install gnupgClick to copy
GNU Privacy Guard.
How to use gpg?
Below are few example commands for gpg that you can use in the terminal.
Sign doc.txt without encryption (writes output to doc.txt.asc):gpg --clearsign doc.txtClick to copyEncrypt doc.txt for [email protected] (output to doc.txt.gpg):gpg --encrypt --recipient [email protected] doc.txtClick to copyEncrypt doc.txt with only a passphrase (output to doc.txt.gpg):gpg --symmetric doc.txtClick to copyDecrypt doc.txt.gpg (output to STDOUT):gpg --decrypt doc.txt.gpgClick to copyImport a public key:gpg --import public.gpgClick to copyExport public key for [email protected] (output to STDOUT):gpg --export --armor [email protected]Click to copyExport private key for [email protected] (output to STDOUT):gpg --export-secret-keys --armor [email protected]Click to copy
Install the latest version of gpg in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS from terminal. To install the gpg just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of gpg from the respository and install it in your computer/server.




