This is a cache of https://docs.openshift.com/container-platform/4.2/cli_reference/openshift_developer_cli/installing-odo.html. It is a snapshot of the page at 2024-11-23T02:37:51.869+0000.
Installing odo - OpenShift Do developer <strong>cli</strong> (odo) | <strong>cli</strong> tools | OpenShift Container Platform 4.2
×

The following section describes how to install odo on different platforms.

Currently, odo does not support installation in a restricted network environment.

Installing odo on Linux

Binary installation

# curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-amd64 -o /usr/local/bin/odo
# chmod +x /usr/local/bin/odo

Tarball installation

# 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'
# chmod +x /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.

Setting the PATH variable for Windows 7/8

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. Select Path from the Variable section and click Edit.

  6. click New and type C:\go-bin 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.

Installing odo on macOS

Binary installation

# curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64 -o /usr/local/bin/odo
# chmod +x /usr/local/bin/odo

Tarball installation

# 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'
# chmod +x /usr/local/bin/odo