-
Download the GnuPG installation file.
# wget https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-2.5.18.tar.bz2
Downloading gnupg
-
Extract the file.
# tar -xjf gnupg-2.5.18.tar.bz2
-
Go to the directory where the file is extracted.
# cd gnupg-2.5.18
-
Run the following command to compile and install.
# ./configure --prefix=/usr/local
# make
# make install
Installing gpg
Installing gpg_continued
Installing gpg_make install
Installing gpg_make install continued
-
Export the
PATHandLD_LIBRARY_PATHvariables.
# export PATH=/usr/local/bin:$PATH
# export LD_LIBRARY_PATH=/usr/local/lib
-
Verify that the GnuPG has been installed successfully.
# gpg --version
Verifying gpg version