Installing the jq JSON command-line utility

A Cloud Pak for Data OADP backup and restore utility script, cpd-operators.sh, and some backup and restore commands, require the jq JSON command-line utility.

Procedure

  1. Log in to Red Hat® OpenShift® Container Platform as an instance administrator.
    ${OC_LOGIN}
    Remember: OC_LOGIN is an alias for the oc login command.
  2. Download and validate the utility.
    • For x86_64 hardware, run the following commands:
      wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
      chmod +x ./jq
      cp jq /usr/local/bin
    • For ppc64le hardware, run the following commands:
      wget -O jq https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-ppc64el
      chmod +x ./jq
      cp jq /usr/local/bin