Skip to content

Instantly share code, notes, and snippets.

@mehdihasan
Last active August 27, 2024 20:10
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!

@madhoshyagnik
Copy link

Very helpful! Thanks

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