Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Openshift Client Tool (oc) in Ubuntu 16.04

Install Openshift OC Tool in Ubuntu 16.04

What is OC Tool?

OC tool stands for OpenShift Origin Client Tools

Environment

  • Operating System : Ubuntu 16.04 LTS (64-bit)

Install OC tool in Ubuntu 16.04

The step by step installation guideline is shown below.

Download oc Client Tools

Download oc Client Tools for Linux from: https://www.openshift.org/download.html

Extract the downloaded .tar.gz

Extract the downloaded file and you will get oc file.

Move oc binary file to a directory in your local machine path

The oc file should be moved to any directory in the path. To check the path information of the local machine, open terminal and write:

echo $PATH

Now keep the oc file in any of these listed directory.

Apply Executable Permissions to the Binary

After keeping the oc file in any directory of the path you need to give execution permission to oc file. Open terminal in the same path and do:

chmod +x SELECTED_PATH

Test the Installation

After successful installation of oc you can login to the console like below:

$ oc login
Server: 
Username: 
Password: 
Login successful.
Welcome! See 'oc help' to get started.

References

@tunminster

This comment has been minimized.

Copy link

commented Jul 6, 2019

Please give an example of chmod +x SELECTED_PATH

@sidpremkumar

This comment has been minimized.

Copy link

commented Jul 8, 2019

Please give an example of chmod +x SELECTED_PATH

SELECTED PATH would be the 'pwd' of the path you placed your oc file in. For example, if you placed your file in 'home/YOUR_USERNAME/bin' the command to enter would be:
chmod +x home/YOUR_USERNAME/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.