내 서버의 기본 gpg는 1.4.20입니다. 하지만 몇 가지 실험을 수행하려면 gpg 버전 1.4.13을 설치해야 합니다.
다음 명령을 실행합니다.
./configure
make
make install
이 시점에서 gpg는 기본 디렉터리( /usr/local/bin/gpg
)에 설치됩니다. 을 사용하면 gpg --version
가리키는 버전이 이라는 것을 알 수 있습니다 . 원래 1.4.20 버전( 폴더 1.4.13
아래)을 가리키기를 원합니다 . /usr/bin/gpg
어떻게 해야 합니까?
(base) :~$ type gpg
gpg is /usr/local/bin/gpg
(base) :~$ gpg --version
gpg (GnuPG) 1.4.13
Copyright (C) 2012 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-E, RSA-S, ELG-E, 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
(base) :~$
(base) :~$
(base) :~$ /usr/bin/gpg --version
gpg (GnuPG) 1.4.20
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-E, RSA-S, ELG-E, 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