HOW TO: Install PGP Command Line on Oracle Solaris
search cancel

HOW TO: Install PGP Command Line on Oracle Solaris

book

Article ID: 180192

calendar_today

Updated On:

Products

PGP Command Line

Issue/Introduction

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

Resolution

Installing PGP Command Line on Oracle Solaris

To Install Oracle Solaris 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 Oracle Solaris in the default directory:

  1. If you have an existing version of PGP Command Line installed on the computer, uninstall it.
  2. Download the installer file called PGPCommandLine[version]Solaris.tar to a known location on your system.
  3. Untar the package first. You will get the following file: PGPCommandLine[version]Solaris.pkg
  4. Type pkgadd -d PGPCommandLine[version]Solaris.pkg and press Enter.
  5. At the first prompt, enter "1" or "all" to install the package.
     

If the directories /usr/bin and /usr/lib are not owned by root:bin, the install application pkgadd will ask if you want to change the ownership/group on these directories. It is not necessary to change them, but as an admin you may do so if you wish.

By default, the PGP Command Line application, pgp, is installed into the directory /opt/pgp/bin. You need to add this directory to your PATH environment variable in order for the application to be found.

For sh-based shells, use this syntax:

PATH=$PATH:/opt/pgp/bin

For csh-based shells, use this syntax:

set path = ($path /opt/pgp/bin)

Also, in order to access the PGP Command Line man page, you need to set the MANPATH environment variable appropriately.

For sh-based shells, use this syntax:

MANPATH=$MANPATH:/opt/pgp/man; export MANPATH

For csh-based shells, use this syntax:

setenv MANPATH "/opt/pgp/man"

 

To install PGP Command Line on Oracle Solaris in another directory:

  1. If you have an existing version of PGP Command Line installed on the computer, uninstall it.
  2. Download the installer application PGPCommandLine[version]Solaris.tar to a known location on your system.
  3. Untar the package first. You will get the following file: PGPCommandLine[version]Solaris.pkg
  4. Type: pkgadd -a none -d PGPCommandLine[version]Solaris.pkg (This will force an interactive installation).
  5. Press Enter.
  6. At the first prompt, enter 1 or all to install the package.
     

You will be asked to enter the path to the packages base directory. If you enter /usr/pgp, the binary will be installed to /usr/pgp/bin/pgp, libraries will be installed to /usr/pgp/lib, and so on.

You need to edit the environment variable LD_LIBRARY_PATH to include the new library path (/usr/pgp/lib) so that PGP Command Line can function in this location.