Installing odo

    You can also find the URL to the latest binaries from the OKD web console by clicking the ? icon in the upper-right corner and selecting Command Line Tools

    Procedure

    1. Obtain the binary:

    2. Change the permissions on the file:

      1. # chmod +x /usr/local/bin/odo

    Tarball installation

    Procedure

    1. Obtain the tarball:

      1. # sh -c 'curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-amd64.tar.gz | gzip -d > /usr/local/bin/odo'
    2. Change the permissions on the file:

      1. # chmod +x /usr/local/bin/odo

    Installing with yum on Fedora

    Procedure

    1. Pull the latest subscription data:

      1. # subscription-manager refresh
    2. List the available subscriptions:

      1. # subscription-manager list --available --matches '*OpenShift Developer Tools and Services*'
    3. In the output of the previous command, find the Pool ID field for your OKD subscription and attach the subscription to the registered system:

      1. # subscription-manager attach --pool=<pool_id>
    4. Enable the repositories required by odo:

    5. Install the odo package:

      1. # yum install odo
    6. Verify that is now available on your system:

      1. $ odo version

    Installing odo on Linux on IBM Power

    Binary installation

    Procedure

      1. # curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-ppc64le -o /usr/local/bin/odo
    1. Change the permissions on the file:

      1. # chmod +x /usr/local/bin/odo

    Procedure

    1. Obtain the tarball:

      1. # sh -c 'curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-ppc64le.tar.gz | gzip -d > /usr/local/bin/odo'
    2. Change the permissions on the file:

      1. # chmod +x /usr/local/bin/odo

    Binary installation

    Procedure

    1. Obtain the binary:

      1. # curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-s390x -o /usr/local/bin/odo
    2. Change the permissions on the file:

    Tarball installation

    Procedure

    1. Obtain the tarball:

      1. # sh -c 'curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-s390x.tar.gz | gzip -d > /usr/local/bin/odo'

    Installing odo on Windows

    Binary installation

    1. Download the latest odo.exe file.

    2. Add the location of your odo.exe to your GOPATH/bin directory.

    The following example demonstrates how to set up a path variable. Your binaries can be located in any location, but this example uses C:\go-bin as the location.

    1. Create a folder at C:\go-bin.

    2. Right click Start and click Control Panel.

    3. Select System and Security and then click System.

    4. From the menu on the left, select the Advanced systems settings and click the Environment Variables button at the bottom.

    5. Click New and type into the field or click Browse and select the directory, and click OK.

    Setting the PATH variable for Windows 10

    Edit Environment Variables using search:

    1. Click Search and type env or environment.

    2. Select Edit environment variables for your account.

    3. Select Path from the Variable section and click Edit.

    4. Click New and type C:\go-bin into the field or click Browse and select the directory, and click OK.

    Binary installation

    Procedure

    1. Obtain the binary:

      1. # curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64 -o /usr/local/bin/odo
    2. Change the permissions on the file:

      1. # chmod +x /usr/local/bin/odo

    Tarball installation

    Procedure

    1. Obtain the tarball:

      1. # sh -c 'curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64.tar.gz | gzip -d > /usr/local/bin/odo'
    2. Change the permissions on the file:

      1. # chmod +x /usr/local/bin/odo

    Installing odo on VS Code

    The uses both odo and the oc binary to interact with your OKD cluster. To work with these features, install the OpenShift VS Code extension on VS Code.

    Prerequisites

    • You have installed VS Code.

    Procedure

    1. Open VS Code.

    2. Launch VS Code Quick Open with Ctrl+P.