Skip to content

Instantly share code, notes, and snippets.

@mehdihasan
Last active June 20, 2024 09:07
Show Gist options
  • Save mehdihasan/3399998cba54bdec78deb9be4a002acb to your computer and use it in GitHub Desktop.
Save mehdihasan/3399998cba54bdec78deb9be4a002acb to your computer and use it in GitHub Desktop.
Install OC client in Ubuntu/Debian

Install OC client in Ubuntu/Debian

Get the oc client download URL

Go to this link to get your desired version of the OC client tool. I have choosen the latest version available in July, 2020.

https://github.com/openshift/okd/releases/download/4.5.0-0.okd-2020-07-14-153706-ga/openshift-client-linux-4.5.0-0.okd-2020-07-14-153706-ga.tar.gz

Download the package

wget https://github.com/openshift/okd/releases/download/4.5.0-0.okd-2020-07-14-153706-ga/openshift-client-linux-4.5.0-0.okd-2020-07-14-153706-ga.tar.gz

Extract the package

tar -xvf openshift-client-linux-4.5.0-0.okd-2020-07-14-153706-ga.tar.gz

Move oc and kubectl file to your expected directory

sudo mv oc kubectl /usr/local/bin/

Now you can start using OC command

oc version

** You may need to add the installation path in your bash profile

@bandhan-majumder
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment