|Securing and Optimizing Linux: RedHat Edition -A Hands on Guide|
|Prev||Chapter 19. Software -Securities/Management & Limitation||Next|
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: http://www.gnupg.org/|
|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 \ --enable-shared
[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