Option – 1 – REDHAT Websites
URL – https://access.redhat.com/downloads/content/290/ver=4.18/rhel—9/4.18.11/x86_64/product-software

Option – 2 – OKD Websites
The OKD (Origin Community Distribution of Kubernetes for OpenShift) is the open-source version of OpenShift, and its CLI (oc
) is freely available.
🔗 URL:
➡️ https://github.com/openshift/okd/releases
✔️ How to Download:
- Go to the latest OKD release.
- Download the archive for your platform:
openshift-client-linux.tar.gz
openshift-client-mac.tar.gz
openshift-client-windows.zip
- Extract it, and you’ll get:
oc
(OpenShift CLI)kubectl
(Kubernetes CLI)
✅ No login or subscription required!
MacOS
This is actually a really quick process so this article is going to be short. This process will show you how to do the following:
- How to Install Brew for MacOS
- How to Install the OpenShift CLI using Brew
- How to Utilize the Login Command with Token to Access a Cluster
Step 1. Install Brew for MacOS
Run the following command to install brew in a terminal window:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
or
brew install openshift-cli
Note: After you run the command there are some additional commands that will be asked to run in order to run brew. If this is not run successfully a command not found will display when running the brew command.
Step 2. Install the OpenShift CLI using Brew
Run the following command in the terminal to install the OpenShift (aka OC) CLI utility:
$ brew install openshift-cli
Windows
https://access.redhat.com/downloads/content/290/ver=4.18/rhel—9/4.18.8/x86_64/product-software
or
$ scoop install oc
Linux
https://access.redhat.com/downloads/content/290/ver=4.18/rhel—9/4.18.8/x86_64/product-software
mkdir /ocp-tools
wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-4.6/openshift-client-linux.tar.gz -P /ocp-tools
wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-4.6/openshift-install-linux.tar.gz -P /ocp-tools
ls -la /ocp-tools
cd /ocp-tools
chmod 777 *
tar xvf openshift-install-linux.tar.gz openshift-install
tar xvf openshift-client-linux.tar.gz oc kubectl
cp oc kubectl /usr/local/bin
oc version
kubectl version
/ocp-tools/openshift-install version
Code language: JavaScript (javascript)
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus. I share tech blog at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow , and SEO strategies at Wizbrand.
Do you want to learn Quantum Computing?
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at WIZBRAND