Installation
odo
can be used as either a CLI tool or an IDE plugin on Mac, Windows or Linux.
CLI installation
Each release is signed, checksummed, verified, and then pushed to our binary mirror.
For more information on the changes of each release, they can be viewed either on GitHub or the blog.
Linux
- Intel / AMD 64
- ARM 64
- PowerPC
- IBM Z
Installing odo
on amd64
architecture:
- Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-linux-amd64 -o odo
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-linux-amd64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
- Install odo:
sudo install -o root -g root -m 0755 odo /usr/local/bin/odo
- (Optional) If you do not have root access, you can install
odo
to the local directory and add it to your$PATH
:
mkdir -p $HOME/bin
cp ./odo $HOME/bin/odo
export PATH=$PATH:$HOME/bin
# (Optional) Add the $HOME/bin to your shell initialization file
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
Installing odo
on arm64
architecture:
- Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-linux-arm64 -o odo
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-linux-arm64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
- Install odo:
sudo install -o root -g root -m 0755 odo /usr/local/bin/odo
- (Optional) If you do not have root access, you can install
odo
to the local directory and add it to your$PATH
:
mkdir -p $HOME/bin
cp ./odo $HOME/bin/odo
export PATH=$PATH:$HOME/bin
# (Optional) Add the $HOME/bin to your shell initialization file
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
Installing odo
on ppc64le
architecture:
- Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-linux-ppc64le -o odo
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-linux-ppc64le.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
- Install odo:
sudo install -o root -g root -m 0755 odo /usr/local/bin/odo
- (Optional) If you do not have root access, you can install
odo
to the local directory and add it to your$PATH
:
mkdir -p $HOME/bin
cp ./odo $HOME/bin/odo
export PATH=$PATH:$HOME/bin
# (Optional) Add the $HOME/bin to your shell initialization file
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
Installing odo
on s390x
architecture:
- Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-linux-s390x -o odo
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-linux-s390x.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
- Install odo:
sudo install -o root -g root -m 0755 odo /usr/local/bin/odo
- (Optional) If you do not have root access, you can install
odo
to the local directory and add it to your$PATH
:
mkdir -p $HOME/bin
cp ./odo $HOME/bin/odo
export PATH=$PATH:$HOME/bin
# (Optional) Add the $HOME/bin to your shell initialization file
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
MacOS
- Intel
- Apple Silicon
- Homebrew
Installing odo
on amd64
architecture:
- Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64 -o odo
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
- Install odo:
chmod +x ./odo
sudo mv ./odo /usr/local/bin/odo
- (Optional) If you do not have root access, you can install
odo
to the local directory and add it to your$PATH
:
mkdir -p $HOME/bin
cp ./odo $HOME/bin/odo
export PATH=$PATH:$HOME/bin
# (Optional) Add the $HOME/bin to your shell initialization file
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
Installing odo
on arm64
architecture:
- Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-arm64 -o odo
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-arm64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
- Install odo:
chmod +x ./odo
sudo mv ./odo /usr/local/bin/odo
- (Optional) If you do not have root access, you can install
odo
to the local directory and add it to your$PATH
:
mkdir -p $HOME/bin
cp ./odo $HOME/bin/odo
export PATH=$PATH:$HOME/bin
# (Optional) Add the $HOME/bin to your shell initialization file
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
Installing odo
using Homebrew:
- Install odo:
brew install odo-dev
- Verify the version you installed is up-to-date:
odo version
Windows
Open a PowerShell terminal
Download the latest release from the mirror:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-windows-amd64.exe -o odo.exe
- (Optional) Verify the downloaded binary with the SHA-256 sum:
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-windows-amd64.exe.sha256 -o odo.exe.sha256
# Visually compare the output of both files
Get-FileHash odo.exe
type odo.exe.sha256
- Add the binary to your
PATH
Installing from source code
- Clone the repository and cd into it.
git clone https://github.com/redhat-developer/odo.git
cd odo - Install tools used by the build and test system.
make goget-tools
- Build the executable from the sources in
cmd/odo
.make bin
- Check the build version to verify that it was built properly.
./odo version
- Install the executable in the system's GOPATH.
make install
- Check the binary version to verify that it was installed properly; verify that it is same as the build version.
odo version
IDE Installation
Installing odo
in Visual Studio Code (VSCode)
The OpenShift VSCode extension uses both odo
and oc
binary to interact with Kubernetes or OpenShift cluster.
- Open VS Code.
- Launch VS Code Quick Open (Ctrl+P)
- Paste the following command:
ext install redhat.vscode-openshift-connector