2.1.2. macOS

Installation for macOS

The straight-forward way to installing oc on your system is to install by downloading the binary. This is what we are going to do step by step.

  1. First, download oc. The following URL directly points to the latest stable oc version:

    https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-mac.tar.gz

  2. Change into the directory in which you downloaded the file. Unpack the archive, e.g. with:

    tar xvzf openshift-client-mac.tar.gz
    
  3. Place the oc binary in a directory that is on your PATH.

  1. If you have previously accessed a Kubernetes cluster you have to rename your .kube directory.

    Check if you have a directory ~\.kube and rename it to something like ~\.kube_backup. You can undo this after the training.

  2. Now, head over to the 2.2. Console login page.