Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




19.1. Linux GnuPG

These installation instructions assume:

  • Commands are Unix-compatible.

  • The source path is /var/tmp -other paths are possible.

  • Installations were tested on Red Hat Linux 6.1 and 6.2.

  • All steps in the installation will happen in super-user account root.

  • GnuPG version number is 1.0.1

These are the Package(s) you must be sure to download:

GnuPG Homepage:
Package to download: gnupg-1.0.1.tar.gz

You must decompress the tarball to compile, it is a good idea to make a list of files on the system before you install it, and one afterwards, and then compare them using diff to find out what file it placed where. Simply run find /* > GnuPG1 before and find /* > GnuPG2 after you install the tarball, and use diff GnuPG1 GnuPG2 > GnuPG-Installed to get a list of what changed. Decompress the tarball (tar.gz):
          [root@deep] /# cp gnupg-version.tar.gz /var/tmp
          [root@deep] /# cd /var/tmp
          [root@deep ]/tmp# tar xzpf gnupg-version.tar.gz

You need to Compile and Optimize, move into the new GnuPG dir and type the following on your terminal:
          CC="egcs" \
          CFLAGS="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro -march=pentiumpro -fomit-frame-pointer -fno-exceptions" \
          ./configure \
          --prefix=/usr \
          [root@deep ]/gnupg-1.0.1# make
          [root@deep ]/gnupg-1.0.1# make check
          [root@deep ]/gnupg-1.0.1# make install
          [root@deep ]/gnupg-1.0.1# strip /usr/bin/gpg

The make command compiles all source files into executable binaries,
The make check will run any self-tests that come with the package
finally, the make install command installs the binaries and any supporting files into the appropriate locations.
The strip command will reduce the size of the gpg binary for better performance.

Cleanup after work
          [root@deep] /# cd /var/tmp
          [root@deep ]/tmp# rm -rf gnupg-version/ gnupg-version.tar.gz
The rm command as used above will remove all the source files we have used to compile and install GnuPG. It will also remove the GnuPG compressed archive from the /var/tmp directory.

  Published under the terms of the Open Publication License Design by Interspire