This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.2.3. Installing odo
The following section describes how to install odo
on different platforms using the CLI.
Currently, odo
does not support installation in a restricted network environment.
You can also find the URL to the latest binaries from the OpenShift Container Platform web console by clicking the ? icon in the upper-right corner and selecting Command Line Tools
2.3.1. Installing odo on Linux 复制链接链接已复制到粘贴板!
2.3.1.1. Binary installation 复制链接链接已复制到粘贴板!
Procedure
Obtain the binary:
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-amd64 -o /usr/local/bin/odo
# curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-amd64 -o /usr/local/bin/odo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the permissions on the file:
chmod +x /usr/local/bin/odo
# chmod +x /usr/local/bin/odo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.1.2. Tarball installation 复制链接链接已复制到粘贴板!
Procedure
Obtain the tarball:
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'
# 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'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the permissions on the file:
chmod +x /usr/local/bin/odo
# chmod +x /usr/local/bin/odo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.2. Installing odo on Linux on IBM Power 复制链接链接已复制到粘贴板!
2.3.2.1. Binary installation 复制链接链接已复制到粘贴板!
Procedure
Obtain the binary:
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-ppc64le -o /usr/local/bin/odo
# curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-ppc64le -o /usr/local/bin/odo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the permissions on the file:
chmod +x /usr/local/bin/odo
# chmod +x /usr/local/bin/odo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.2.2. Tarball installation 复制链接链接已复制到粘贴板!
Procedure
Obtain the tarball:
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'
# 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'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the permissions on the file:
chmod +x /usr/local/bin/odo
# chmod +x /usr/local/bin/odo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.3. Installing odo on Linux on IBM Z and LinuxONE 复制链接链接已复制到粘贴板!
2.3.3.1. Binary installation 复制链接链接已复制到粘贴板!
Procedure
Obtain the binary:
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-s390x -o /usr/local/bin/odo
# curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-s390x -o /usr/local/bin/odo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the permissions on the file:
chmod +x /usr/local/bin/odo
# chmod +x /usr/local/bin/odo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.3.2. Tarball installation 复制链接链接已复制到粘贴板!
Procedure
Obtain the tarball:
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'
# 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'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the permissions on the file:
chmod +x /usr/local/bin/odo
# chmod +x /usr/local/bin/odo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.4. Installing odo on Windows 复制链接链接已复制到粘贴板!
2.3.4.1. Binary installation 复制链接链接已复制到粘贴板!
-
Download the latest
odo.exe
file. -
Add the location of your
odo.exe
to yourGOPATH/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.
-
Create a folder at
C:\go-bin
. - Right click Start and click Control Panel.
- Select System and Security and then click System.
- From the menu on the left, select the Advanced systems settings and click the Environment Variables button at the bottom.
- Select Path from the Variable section and click Edit.
-
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:
-
Click Search and type
env
orenvironment
. - Select Edit environment variables for your account.
- Select Path from the Variable section and click Edit.
-
Click New and type
C:\go-bin
into the field or click Browse and select the directory, and click OK.
2.3.5. Installing odo on macOS 复制链接链接已复制到粘贴板!
2.3.5.1. Binary installation 复制链接链接已复制到粘贴板!
Procedure
Obtain the binary:
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64 -o /usr/local/bin/odo
# curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64 -o /usr/local/bin/odo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the permissions on the file:
chmod +x /usr/local/bin/odo
# chmod +x /usr/local/bin/odo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3.5.2. Tarball installation 复制链接链接已复制到粘贴板!
Procedure
Obtain the tarball:
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'
# 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'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Change the permissions on the file:
chmod +x /usr/local/bin/odo
# chmod +x /usr/local/bin/odo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow