1, first view GNUGP the latest stable version:
localhost:~ jack$ Brew search GnuPG==> formulaegnupg gnupg-pkcs11-scd [email protected] 1.4 [Email protected] 2.0 localhost: Info 2.2. 9 (bottled) GNU pretty good Privacy (PGP) Packagehttps: // gnupg.org/ Not installed
2, installation, the system gives the description:
==>Caveats Description Once you run this version of GPGFindit difficult to return to Usinga prior1.4. x or2.0. x. Most notably the prior versions won't automaticallyknow about new secret keys created or imported by this version. We recommendcreating A backup of your '~/. GnuPG ' prior to first use. for full details on the each change and what it could impact you have see https://www.gnupg.org/faq/whats-new-in-2.1.htmlOnce you run the version of GPG, you may find it difficult to return to the version you are using. For example:1.4. x or 2.x version. The most obvious difference is that the previous version does not automatically identify the new key created or imported by the version. We recommend creating your own before you use it for the first time'~/. GnuPG backup.
3, Installation and description:
Install [Email protected] 2.0 for [Email protected] 2.0: Libgpg-error, Libgcrypt, Libksba, Libassuan, Pinentry, PTH, Gpg-agent, Dirmngr, Libusb, Libusb-compat
Remember to add " use-standard-socket " to your ~/.gnupg/gpg-agent.conf file -only, which means it was not symlinked Into/usr/local,because GPG 2.1 . x ships an internal gpg-agent Span style= "COLOR: #0000ff" >which it must use. If you need to has this software first in your PATH run: echo " export path="/usr/local/opt/gpg-agent/bin: $PATH " " >> ~/ . Bash_profile
4. Modify the configuration file according to step 3:
# added by Gnugppath="/usr/local/opt/gpg-agent/bin: $PATH"PATH=" /usr/local/opt/[email protected]/bin: $PATH"PATH="/usr/local/opt/ Dirmngr/bin: $PATH"export PATH
5. Operation:
localhost:~ jack$ GPG--versiongpg (GnuPG)2.0. toLibgcrypt1.8.3Copyright (C) -Free software Foundation, Inc.license GPLv3+: GNU GPL version3or later //gnu.org/licenses/gpl.html>This is FreeSoftware:you is FreeTo change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Home:~/. gnupgsupported Algorithms:Pubkey:RSA, RSA, RSA, ELG, Dsacipher:idea, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TW Ofish, CAMELLIA128, CAMELLIA192, Camellia256hash:md5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, sha224compression: Uncompressed, ZIP, ZLIB, BZIP2
Mac installation GNUGP