HOW TO: Install or Upgrade PGP Command Line on Red Hat Enterprise or Fedora Core
search cancel

HOW TO: Install or Upgrade PGP Command Line on Red Hat Enterprise or Fedora Core

book

Article ID: 180189

calendar_today

Updated On:

Products

PGP Command Line PGP Key Management Server PGP Key Mgmt Client Access and CLI API PGP SDK Desktop Email Encryption Drive Encryption Encryption Management Server Endpoint Encryption File Share Encryption Gateway Email Encryption

Issue/Introduction

PGP Command Line runs on Red Hat Enterprise Linux, or similar variants, such as CentOS. 

PGP Command Line is also compatible with RHEL IBM Power System starting with version 10.5.1 MP1.

This article will go over the general installation guidelines to install on these platforms. 

Resolution

 

This article details how to install PGP Command Line on Red Hat Enterprise Linux or Fedora Core systems.

Note: Fedora Core is supported using PGP Command Line 9.9.0 - 10.1.0 versions only.

It is important to obtain the correct installer for the installation of PGP Command Line.  See the following mapping for installers to platform for guidance:

Installing PGP Command Line on Red Hat Enterprise Linux or Fedora Core

You need to have root or administrator privileges on the machine on which you are installing PGP Command Line. Linux installations now default to /opt/pgp, which matches the default installation location on other UNIX platforms. To install PGP Command Line on Linux to the previous installation location (/usr/bin/), use the "--prefix=/usr" option.

If you have an existing Linux installation of PGP Command Line and do not install the new version using the "--prefix=/usr" option, you will need to update your path to include /opt/pgp/bin and you will need to update any scripts accordingly.

Caution: If you want to use the XML key list functionality in PGP Command Line, you need to upgrade libxml2 to Version 2.6.8; the default is Version 2.5.10. If you attempt to use the XML key list functionality without upgrading, you will receive an error.

 

To install PGP Command Line on a Linux system (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]Linux.tar to a known location on your system.
  3. Untar the package first. You will get the following file: PGPCommandLine[version]Linux.rpm
  4. Type: rpm -ivh PGPCommandLine[version]Linux.rpm
  5. Press Enter.
     

Note: The PGP Command Line application, pgp, is installed by default into /opt/pgp/.

 

To install PGP Command Line into a different directory:

By adding the option --prefix to the rpm command, you can install PGP Command Line in a location other than the default.

  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]Linux.tar to a known location on your system.
  3. Untar the package first. You will get the following file: PGPCommandLine[version]Linux.rpm
  4. Type: rpm --prefix=/opt -ivh PGPCommandLine[version]Linux.rpm
  5. Press Enter.
     

 

 

Upgrading PGP Command Line to a new version

If you are trying to install a new version of PGP Command Line, it is necessary to first *uninstall* what is currently installed.  This will prepare the system for a proper installation.

1. Before you uninstall, or otherwise make any modifications to the PGP Command Line, backup your keyrings.

2. Depending on your installation directory, keyrings may reside **inside**, so backup them to an alternative location.

3. To see where your current keyrings are, run the following command and make note of where the .pkr and .skr files are located and copy them to a different location:

4. pgp --version -v

5. It is also a good idea to make note of your license number and probably a good idea to just output this entire result to a text file for reference later.

6. To uninstall, first grep to see which RPM you have installed by running the following command:

rpm -qa |grep pgp

7. Once you see the package version, run the uninstaller command:

rpm -e package-name-here


8. Once you have uninstalled PGP Command Line, run the rpm -qa command again to ensure it is no longer installed.  Then you can install the newer version of PGP Command Line.


Now you are ready to perform the installation for the newer version as shown in the examples at the top of this article.

 

This command will install the application binary in the directory /opt/bin/pgp, libraries in /opt/lib, etc. You will need to edit the environment variable LD_LIBRARY_PATH to include the new library path for the software to function in any location other than the default.  For information about the Library Path, see the following article:

156185 - Proper library version is not found when using PGP Command Line

 

 

 

 

Additional Information