Skip to content

oc

Command line client for controlling an Openshift cluster

The OpenShift command-line interface (CLI), allows you to create applications and manage OpenShift Container Platform projects from a terminal. The OpenShift CLI is ideal for working directly with project source code, scripting OpenShift Container Platform operations or managing projects while restricted by bandwidth resources and the web console is unavailable.

devops

https://openshift.com

amd64 arm64

Installation

1. Add WakeMeOps repository

curl -sSL https://raw.githubusercontent.com/upciti/wakemeops/main/assets/install_repository | sudo bash

2. Install oc

sudo apt install oc

Snippets

FROM wakemeops/minideb:bullseye

RUN install_packages \
    oc=4.17.12*

USER 1001
- name: Install dependencies
  uses: upciti/wakemeops-action@v1
  with:
    packages: |
      oc=4.17.12*

Download URLs

Version SHA256 Size (KB)
4.17.12 6c0bd70c1a2fb6c24ed66c1329c5fb0fe406412c137e28d38a0ff03d5424525a 25087
4.17.11 0739a45932b59611971bb33334c12bceee4eadf67c80fb5cf2283d074519d308 25087
4.17.10 ea80a00a0b9711271491c6f09223f714bc5330043252e875050e359362a5b408 25087
4.17.9 1be6c0974caee56dfcf956c5aa29a2c747868c7ad7f450fc0ff94885abf3164b 25086
4.17.8 1eb51954c885c0131752ec2382d87b9ebc7a3114e655601b6fbf6d6a31135559 25088
4.17.7 cbe963c54bb9401b21567e91d76f1df12410e8d5184c38e5b6ffc83c88a39115 25088
4.17.6 88f78541894db10d6c12b55f943d4ab6712c51f0eaf6216f43d56850eb6d1794 25085
4.17.5 4723b1782124b105acbd5227a5f72f3e513c13887b53c3a23a46512fb2936415 25086
Version SHA256 Size (KB)
4.17.12 b534282f3cfcc39f39655d1fae0cd911af6c47272e933fcef11e4d5a1751e3cb 15724
4.17.11 de9b41d40318ff3347529bea9ef8c35ec303d0c3d821f8c858b54e95c1972f6d 15724
4.17.10 e26f340df82cf056d5127e450419ffdb0bbb962add1c0f540febac68d0f813c1 15724
4.17.9 f215ca3d6ae51454a5cb4709c78966511ec06d7e430f0d3cd7615b766e8a15dd 15726
4.17.8 a3b181be886d965a7af8a608c783189b1ea045c4cdc6b07225f54ffbf0645fe0 15728
4.17.7 ee8931cd918e91ba5c64d2abec0463ce8cf9e2218b25cff89bdf5c55962432df 15727
4.17.6 6ff07cd3739827762a6d9654449d0322e857a1236c6e2737b9baf72a0b168bf8 15713
4.17.5 508cc2d21aac66f8e1ec252b8a5c188c391616cf09c58bccedab763b8314f4a0 15717

Blueprints

Debian packages listed on this page are generated from op2deb YAML blueprints. Blueprints for oc are versioned here.

Click here to see oc ops2deb blueprints
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/oc/ops2deb.yml
name: oc
matrix:
  architectures:
    - amd64
    - arm64
  versions:
    - 4.17.5
    - 4.17.6
    - 4.17.7
    - 4.17.8
    - 4.17.9
    - 4.17.10
    - 4.17.11
    - 4.17.12
homepage: https://openshift.com
summary: command line client for controlling an Openshift cluster
description: |-
  The OpenShift command-line interface (CLI), allows you to create applications
  and manage OpenShift Container Platform projects from a terminal. The OpenShift
  CLI is ideal for working directly with project source code, scripting OpenShift
  Container Platform operations or managing projects while restricted by
  bandwidth resources and the web console is unavailable.
fetch:
  url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/{{version}}/openshift-client-{{target}}.tar.gz
  targets:
    amd64: linux
    arm64: linux-arm64
install:
  - oc:/usr/bin/oc

The blueprint fetch keyword contains a URL template pointing to oc releases. Downloaded files are locked in a lockfile versioned here.

Click here to see oc release hashes
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/oc/ops2deb.lock.yml
- url: https://github.com/okd-project/okd/releases/download/4.15.0-0.okd-2024-03-10-010116/openshift-client-linux-arm64-4.15.0-0.okd-2024-03-10-010116.tar.gz
  sha256: 846fefd8491fd404d0b4d248d2eeda3d76a3a79aa95cab3523f89ee4fbfca136
  timestamp: 2024-11-25 11:11:58+00:00
- url: https://github.com/okd-project/okd/releases/download/4.15.0-0.okd-2024-03-10-010116/openshift-client-linux-4.15.0-0.okd-2024-03-10-010116.tar.gz
  sha256: 90a357d420008494e0ea898801ddf39da11cab4270b778ee01a72bda7835a3a9
  timestamp: 2024-11-25 11:13:58+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.5/openshift-client-linux-arm64.tar.gz
  sha256: 9cfbedfde3dc7a1e804991c69c85301100e4234ded3090001bc8fd8d2cf0e3c8
  timestamp: 2024-11-25 12:31:49+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.5/openshift-client-linux.tar.gz
  sha256: 551a51b8d3ce076d6d73268866b4b072a7e01d78a261dd2a62a32e0d7a2884cf
  timestamp: 2024-11-25 12:31:49+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.6/openshift-client-linux-arm64.tar.gz
  sha256: 1cfe511bd7197ff2e7ef4faff4e3796ed740e9e41cca1c612fcea4dd5d515d66
  timestamp: 2024-11-25 12:31:49+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.6/openshift-client-linux.tar.gz
  sha256: 41d4146e6794a39d9d8fe0b0a11b7c61bd8095776afddad784f36e555d8bad18
  timestamp: 2024-11-25 12:31:49+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.7/openshift-client-linux-arm64.tar.gz
  sha256: 31b6519adc15816d3d266e18dcfc7d4cd37ccfa2711cb8f1dbcb3dcd3c619c21
  timestamp: 2024-12-07 00:45:24+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.7/openshift-client-linux.tar.gz
  sha256: c455a53418df3b90a6ace9e387b1f8f3d795701efe34e700a38b47ea9c123bd4
  timestamp: 2024-12-07 00:45:24+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.8/openshift-client-linux-arm64.tar.gz
  sha256: 74be2d40aabfac5736ff784a309f70e38e0cb4133bc1c198bd7ed179134ef949
  timestamp: 2024-12-07 00:45:24+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.8/openshift-client-linux.tar.gz
  sha256: f2dc55e02e53bb6140d6c79ce74b66f685f74f48dd3f368b2cde3674a4710185
  timestamp: 2024-12-07 00:45:24+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.9/openshift-client-linux-arm64.tar.gz
  sha256: feb20d41ccc8b9e03319864cc5bb36c0794c6db76d33dace616a476691db14c4
  timestamp: 2024-12-16 09:08:00+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.9/openshift-client-linux.tar.gz
  sha256: edc8e4e3f1273f39b0f61de878979f57d14b4e9de33ff866c43638f03fefbf66
  timestamp: 2024-12-16 09:08:00+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.10/openshift-client-linux-arm64.tar.gz
  sha256: 1cdfefda501895ab24d88b574e861dbb6c8f01b5526509c53fd0c77ef2b8d862
  timestamp: 2024-12-20 15:06:24+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.10/openshift-client-linux.tar.gz
  sha256: d826c272dff763ffe9f3162f149cc9cb09b8a486c55e6c59cb987b0501218974
  timestamp: 2024-12-20 15:06:24+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.11/openshift-client-linux-arm64.tar.gz
  sha256: da6980eb93e6520d323009a25540242e946ec92d4ee13b11ee21f13d14bf261f
  timestamp: 2025-01-03 00:27:11+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.11/openshift-client-linux.tar.gz
  sha256: c1eed0fd5e1094249aa02697f747b639e5de1da55de5f23a1a3622394ebcb621
  timestamp: 2025-01-03 00:27:11+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.12/openshift-client-linux-arm64.tar.gz
  sha256: 90f17fdf88e883bd369c8da94db33616fca825b67a9937e2f81ade6f5ec9b774
  timestamp: 2025-01-10 18:08:22+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.12/openshift-client-linux.tar.gz
  sha256: 7ecaf83c3f17f7466115b88e9bd0f297463dbe503ac134bef9cd5fb263493f6b
  timestamp: 2025-01-10 18:08:22+00:00

Badge

WakeMeOps

[![WakeMeOps](https://docs.wakemeops.com/badges/oc.svg)](https://docs.wakemeops.com/packages/oc)
<a href="https://docs.wakemeops.com/packages/oc">
  <img src="https://docs.wakemeops.com/badges/oc.svg"/>
</a>
.. image:: https://docs.wakemeops.com/badges/oc.svg
:target: https://docs.wakemeops.com/packages/oc