How to manually install a gppkg package on a single segment host.
search cancel

How to manually install a gppkg package on a single segment host.

book

Article ID: 436560

calendar_today

Updated On:

Products

VMware Tanzu Greenplum VMware Tanzu Greenplum / Gemfire

Issue/Introduction

If a new host is added to the cluster to replace an old host the packages added by "gppkg" utiliuty would need to be added to the host.

This describes how to manually add the packages to the an individual host rather than to all the hosts in the cluster.

Resolution

List which gppkg packages are installed on the host:

  1. source /usr/local/greenplum-db/greenplum_path.sh
  2. rpm -q -a --dbpath ${GPHOME}/share/packages/database

Install a particular gppkg

  1. Download the gppkg file to the host and place it in /tmp directory
  2. Extract the RPM file from gppkg file with:
    cd ${GPHOME}/.tmp
    tar zxvf /tmp/<gppkg_file>
    ls -l *.rpm # This lists the rpm file
  3. Install the package with:
    rpm -i <rpm_file_extracted_above> --dbpath ${GPHOME}/share/packages/database --prefix ${GPHOME}

Delete a package

  1. rpm -e <package_name> --dbpath ${GPHOME}/share/packages/database