Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save arsho/b23572d5990936e70b9fd0f8216fc0b9 to your computer and use it in GitHub Desktop.
Save arsho/b23572d5990936e70b9fd0f8216fc0b9 to your computer and use it in GitHub Desktop.
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
Copy link

Please give an example of chmod +x SELECTED_PATH

@sidpremkumar
Copy link

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

@gsabatini2016
Copy link

Download URL Broken

@gsabatini2016
Copy link

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