Installing odo
- Installing odo on Linux
- Installing odo on Linux on IBM Power
- Installing odo on Linux on IBM Z and LinuxONE
- Installing odo on Windows
- Installing odo on macOS
- Installing odo on VS Code
The following section describes how to install odo
on different platforms using the CLI or the Visual Studio Code (VS Code) IDE.
Currently, |
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
Installing odo on Linux
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
Change the permissions on the file:
# chmod +x /usr/local/bin/odo
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'
Change the permissions on the file:
# chmod +x /usr/local/bin/odo
Installing with yum on Fedora
Procedure
Register with Red Hat Subscription Manager:
# subscription-manager register
Pull the latest subscription data:
# subscription-manager refresh
List the available subscriptions:
# subscription-manager list --available --matches '*OpenShift Developer Tools and Services*'
In the output of the previous command, find the
Pool ID
field for your OKD subscription and attach the subscription to the registered system:# subscription-manager attach --pool=<pool_id>
Enable the repositories required by
odo
:# subscription-manager repos --enable="ocp-tools-4.9-for-rhel-8-x86_64-rpms"
Install the
odo
package:# yum install odo
Verify that
odo
is now available on your system:$ odo version
Installing odo on Linux on IBM Power
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
Change the permissions on the file:
# chmod +x /usr/local/bin/odo
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'
Change the permissions on the file:
# chmod +x /usr/local/bin/odo
Installing odo on Linux on IBM Z and LinuxONE
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
Change the permissions on the file:
# chmod +x /usr/local/bin/odo
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'
Change the permissions on the file:
# chmod +x /usr/local/bin/odo
Installing odo on Windows
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 Environment Variables 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.
Installing odo on macOS
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
Change the permissions on the file:
# chmod +x /usr/local/bin/odo
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'
Change the permissions on the file:
# chmod +x /usr/local/bin/odo
Installing odo on VS Code
The OpenShift VS Code extension 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
Open VS Code.
Launch VS Code Quick Open with
Ctrl
+P
.Enter the following command:
$ ext install redhat.vscode-openshift-connector