HOW TO: Install PGP Command Line on AIX

book

Article ID: 180186

calendar_today

Updated On:

Products

PGP Command Line

Issue/Introduction

 

Resolution

This article details how to install PGP Command Line on AIX systems.

Installing PGP Command Line on AIX

You need to have root or administrator privileges on the machine on which you are installing PGP Command Line

To install PGP Command Line on an AIX system:

  1. Check if your AIX distribution is listed in Supported Platforms section of PGP Command Line Release Notes
  2. To identify version of your AIX system run uname -a command in terminal of your AIX system. As of this writing, the latest version of PGP Command Line 10.3.2 MP7 (Build 12292), supports the following distributions:
    • IBM AIX 7.1 (TL 3) PowerPC, 32- and 64-bit
    • IBM AIX 6.1 (TL 4 and greater) PowerPC, 32- and 64-bit
    • IBM AIX 5.3 (Technology Levels supported by IBM; as of July 2011, TL 11 and greater) PowerPC, 32- and 64-bit
  3. If you have an existing version of PGP Command Line installed on the computer, uninstall it, by running following command as privileged user
    • rpm -e pgpcmdln
  4. Download the appropriate installer package with latest version of PGP Command Line application from FileConnect to a known location on your AIX system.
    • You will get the file called PGPCommandLine[version]AIX.tar
  5. Extract content of the package using command tar -xvf PGPCommandLine[version]AIX.tar
    • You will get the following file: PGPCommandLine[version]AIX.rpm
  6. As privileged user run one of the following commands in the directory with extracted .rpm file, replacing [version] with the appropriate version number from the downloaded installer
    • To install PGP Command Line to the default location (The default location is directory /opt/pgp)
      • rpm -ivh PGPCommandLine[version]AIX.rpm
    • To install PGP Command Line to location other than the default (for example to directory /usr/pgp)
      • rpm --prefix=/usr/pgp -ivh PGPCommandLine[version]AIX.rpm
    • After this steps all pgp-related sub-folders bin, doc, lib and man are created in selected location and populated with respective files
  7. Modify the environment variables so that PGP Command Line can function in any location other than the default (replace /opt/pgp below with path used in rpm --prefix command above if PGP Command Line is installed to location other than the default). To display your current environment variables run env command.
    • Configure PATH environment variable in order for application to be found
      • For sh-based shells, use this syntax: PATH=/opt/pgp/bin:$PATH; export PATH
      • For csh-based shells, use this syntax: setenv PATH /opt/pgp/bin:$PATH
    • In order to access the PGP Command Line man page, extend the MANPATH environment variable
      • For sh-based shells, use this syntax: MANPATH=/opt/pgp/man:$MANPATH; export MANPATH
      • For csh-based shells, use this syntax: setenv MANPATH /opt/pgp/man:$MANPATH
    • Edit the environment variable LIBPATH to include the new library path. Please note that libraries shipped with pgp should be the first in the list.
      • For sh-based shells, use this syntax: LIBPATH=/opt/pgp/lib:$LIBPATH; export LIBPATH
      • For csh-based shells, use this syntax: setenv LIBPATH /opt/pgp/lib:$LIBPATH
    • If needed, configure other environment variables listed in "Environment Variables" section of PGP Command Line User's Guide
    • PGP Command Line makes use of shared memory segments: On AIX systems, some operations, such as PKCS-12 certificate import or passphrase cache operations, may fail due to per-process limits on the number of segments that can be mapped. To avoid possible problems on AIX, Symantec recommends defining an environment variable: EXTSHM=ON
    • If some of above variables are not set, remove variable with precedent colon sign (i.e. ":{VARIABLENAME.EN_US}") from syntax of above command in order to avoid errors. In order to unset variable later on you may use following command with name of respective environment variable.
      • For sh-based shells, use this syntax: unset VARIABLENAME
      • For csh-based shells, use this syntax: unsetenv VARIABLENAME
  8. Create a wrapper script if modification of environment variables is not allowed or not desirable
    • For default installation and sh-based shells, the wrapper scrip should include following commands prior execution of pgp application:
      • PATH=$PATH:/opt/pgp/bin
      • MANPATH=/opt/pgp/man
      • LIBPATH=/opt/pgp/lib
      • EXTSHM=ON
      • PGP_HOME_DIR=$HOME/.pgp
  9. Verify that PGP Command Line installation is completedn by running following command:
    • pgp --version --verbose