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

arm64 amd64

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.18.7*

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

Download URLs

Version SHA256 Size (KB)
4.18.7 e4fc5d70b97988727292fb8622a5fd9e38518b7a13f67073c153c8d19f25d7c0 26299
4.18.6 489724e820847ab92324527419b2908077fef2938cd599830a6ca2b45a2f26b5 26300
4.18.5 db4c5622f41d8e788efcf2be642fa1202e4df12c54bf29336d8643820463af55 26301
4.18.4 7c4b9181eed1652706d6e856ef7fa4972333c7c01814b746a773f33c00630184 26298
4.18.1 3bbe060ebed25566c550895f381ca823d698f77aebc945600a0ab9dd41988c95 26278
4.17.18 f8ef5397fe7473c661c9f30d103590fbe142e81f95171167fa85b4fe598db937 25086
4.17.17 6af50072fecd67b9824d42e9fc3c302fcf9600b6f269100e3103adbded80aee2 25080
4.17.16 9e0fcdd9433d3908f7cebafdfceb5edb5edf576d564c27bfac6827484ac31a94 25086
4.17.15 7aec4a7dc82473ac84aae7ddc434ed24bc63d589de882934cb9a509c2ef779ec 25086
4.17.14 b0c7ea0333d336f23211dd86d419b46942ba614caee8560d376d9a8aa389dd8d 25086
Version SHA256 Size (KB)
4.18.7 0a9a68560b57b9747efabd365013bcbcedf1bcd8dd8b602ad02b7bfccb324bca 16305
4.18.6 839d6554dbca3bd45876b7a1a948ffd1c3fa260ab750a42cc3890f964d6f2d57 16300
4.18.5 19cff7376e9596239f86f48ae209d2638730ccb045950fba03a1c52a269d1397 16299
4.18.4 a416d2211f8c8ec834df52f127dffd3b6eff0190e9721b88ab79eaf6861d80c7 16299
4.18.1 cd2f85e65004b27187e51567bd3503287db1bef86ce9f73efa7a6e8ac5cdf549 16290
4.17.18 d6e2034d9e7c2fa7c312511272b6baf4c3dc29c2c3e9e370d95c1ff8abe39158 15724
4.17.17 765ec994273889afe35906ce624bd92b9b9091efabe190a8aa3bd5233461b508 15724
4.17.16 c56f4f788c811c998f58f58d0d64d14d75af2212b4c1c004562d99edb95fd181 15725
4.17.15 c44220469868b2747d30a0a50afa83dfbbd9419d94dff8a5ab3a019bb80b1012 15724
4.17.14 5ae520d500100c364767f2a2d2836a8a974c40391fd83b79c705b97b9554f907 15723

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
    - 4.17.14
    - 4.17.15
    - 4.17.16
    - 4.17.17
    - 4.17.18
    - 4.18.1
    - 4.18.4
    - 4.18.5
    - 4.18.6
    - 4.18.7
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
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.14/openshift-client-linux-arm64.tar.gz
  sha256: cb966364a865d16fed878e355716adfcdd040bbc871b8da59d74cc70693b0c08
  timestamp: 2025-01-28 09:07:22+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.14/openshift-client-linux.tar.gz
  sha256: 3d696605ef1ef33b49546ed7f6498458ff704935aad4fe9fcc3bab297b9ff80e
  timestamp: 2025-01-28 09:07:22+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.15/openshift-client-linux-arm64.tar.gz
  sha256: 5a2ed1437cba0b156381a86e5439e0a09390a1d445df2dc205f18bfff309a779
  timestamp: 2025-01-31 15:06:21+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.15/openshift-client-linux.tar.gz
  sha256: 22580256b1f1b636cf32fb0cb0dbe195e99261d2d0b334bdcfc103c957167ecf
  timestamp: 2025-01-31 15:06:21+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.16/openshift-client-linux-arm64.tar.gz
  sha256: 233accded4b2c378ebad754567bc68cac889f5f1d155d5b754f511b99f66bd08
  timestamp: 2025-02-07 00:27:15+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.16/openshift-client-linux.tar.gz
  sha256: be6f404309c61426b1dad1eb9d982e2084a2af263d595fbd045230a3a5de66ee
  timestamp: 2025-02-07 00:27:15+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.17/openshift-client-linux-arm64.tar.gz
  sha256: bc68060a332cd908caff84679e02b4d6acf8c432db1cf65362eb7f1b5c7c1948
  timestamp: 2025-02-14 00:27:16+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.17/openshift-client-linux.tar.gz
  sha256: e00fd6d99f6a3c11242cd9670963e10fc166f4746d1bd71a34971f31ea46cdf8
  timestamp: 2025-02-14 00:27:16+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.18/openshift-client-linux-arm64.tar.gz
  sha256: 86e51e17aff7e24d5c7fde5abbeacff8f6e190d2d7c65f871a8f21ed3c1f165d
  timestamp: 2025-02-20 16:02:07+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.17.18/openshift-client-linux.tar.gz
  sha256: 53f734252fdb0ed6fedce860f1c1c4671adca71eb63d63f55067c60040c66756
  timestamp: 2025-02-20 16:02:07+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.18.1/openshift-client-linux-arm64.tar.gz
  sha256: a7bbe6667ec4a622e1a92b634affa0c5cd2dde2c0a3560daaf339166c3b55241
  timestamp: 2025-02-22 03:08:20+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.18.1/openshift-client-linux.tar.gz
  sha256: 0dc777cfc31064ccef2330b7e375525ffd1b2a51d973e2203d6d0b95974b3153
  timestamp: 2025-02-22 03:08:20+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.18.4/openshift-client-linux-arm64.tar.gz
  sha256: 74e932a060b481ab9c4967ef5da942a5d7c2b739a003aff1aa5dc851271dbe89
  timestamp: 2025-03-13 09:08:25+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.18.4/openshift-client-linux.tar.gz
  sha256: 74cdd6dca72f40f8cdd04f8d7ef1d1b8b5f3a904216d09a13fa2a03f3997d358
  timestamp: 2025-03-13 09:08:25+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.18.5/openshift-client-linux-arm64.tar.gz
  sha256: 2f8e52c9df4b4c79524d67e64f372161a3700f9fe91776006196b5cb4505cb3a
  timestamp: 2025-03-18 03:17:18+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.18.5/openshift-client-linux.tar.gz
  sha256: 3cd9d759596230f8ebfaa2813067eb532bfae399c3d99e3ffceaf5f02a9e00d1
  timestamp: 2025-03-18 03:17:18+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.18.6/openshift-client-linux-arm64.tar.gz
  sha256: 8d12e306f69123aa1cfffc19df8ddb115b03ff3d562487ed01470937b10b259e
  timestamp: 2025-03-23 18:08:35+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.18.6/openshift-client-linux.tar.gz
  sha256: 3c47ee67b4fc3c423cc15ca5699d61fd1619dbafc92f564492ddb860b24c541c
  timestamp: 2025-03-23 18:08:35+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.18.7/openshift-client-linux-arm64.tar.gz
  sha256: 4fe7ed3e73c9a27e8d37799befdfdb896bccaea78f87cf9def1d68f9573084ff
  timestamp: 2025-04-02 21:14:21+00:00
- url: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/4.18.7/openshift-client-linux.tar.gz
  sha256: 49e539258eb402b2b739876dbf64c8b60729d9a06df5396e8355df0fffda7257
  timestamp: 2025-04-02 21:14:21+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