Installing GnuPG

  1. Download the GnuPG installation file.

# wget https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-2.5.18.tar.bz2
image-20260520-054045.png

Downloading gnupg

  1. Extract the file.

# tar -xjf gnupg-2.5.18.tar.bz2
  1. Go to the directory where the file is extracted.

# cd gnupg-2.5.18
  1. Run the following command to compile and install.

# ./configure --prefix=/usr/local  
# make 
# make install 
image-20260520-054136.png

Installing gpg

image-20260520-054153.png

Installing gpg_continued

image-20260520-054204.png

Installing gpg_make install

image-20260520-054223.png

Installing gpg_make install continued

  1. Export the PATH and LD_LIBRARY_PATH variables.

# export PATH=/usr/local/bin:$PATH 
# export LD_LIBRARY_PATH=/usr/local/lib 
  1. Verify that the GnuPG has been installed successfully.

# gpg --version 
image-20260520-054233.png

Verifying gpg version