标签:linked brew mem host orm div ide pubkey lease
1、首先查看gnugp最新的稳定版:
localhost:~ jack$ brew search gnupg ==> Formulae gnupg gnupg-pkcs11-scd gnupg@1.4 gnupg@2.0 localhost:~ jack$ brew info gnupg gnupg: stable 2.2.9 (bottled) GNU Pretty Good Privacy (PGP) package https://gnupg.org/ Not installed
2、安装,系统给出的说明:
==> Caveats 说明 Once you run this version of gpg you may find it difficult to return to using a prior 1.4.x or 2.0.x. Most notably the prior versions will not automatically know about new secret keys created or imported by this version. We recommend creating a backup of your `~/.gnupg` prior to first use. For full details on each change and how it could impact you please see https://www.gnupg.org/faq/whats-new-in-2.1.html 一旦运行该版的gpg,您可能会发现很难返回使用的版本。比如:1.4.x或2.x版本。最明显的区别是:先前的版本不会自动的辨认出由该版创建或导入的新密钥。我们推荐在第一次使用之前创建你的‘~/.GNUPG备份。
3、安装及说明:
localhost:~ jack$ brew install gnupg@2.0 ==> Installing dependencies for gnupg@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. This formula is keg-only, which means it was not symlinked into /usr/local, because GPG 2.1.x ships an internal gpg-agent which it must use. If you need to have this software first in your PATH run: echo ‘export PATH="/usr/local/opt/gpg-agent/bin:$PATH"‘ >> ~/.bash_profile
4、按照步骤3修改配置文件:
# added by GnuGP PATH="/usr/local/opt/gpg-agent/bin:$PATH" PATH="/usr/local/opt/gnupg@2.0/bin:$PATH" PATH="/usr/local/opt/dirmngr/bin:$PATH" export PATH
5、运行:
localhost:~ jack$ gpg --version gpg (GnuPG) 2.0.31 libgcrypt 1.8.3 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Home: ~/.gnupg Supported algorithms: Pubkey: RSA, RSA, RSA, ELG, DSA Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2
标签:linked brew mem host orm div ide pubkey lease
原文地址:https://www.cnblogs.com/litifeng/p/9393136.html