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

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

Download URLs

Version SHA256 Size (KB)
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
4.17.12 6c0bd70c1a2fb6c24ed66c1329c5fb0fe406412c137e28d38a0ff03d5424525a 25087
4.17.11 0739a45932b59611971bb33334c12bceee4eadf67c80fb5cf2283d074519d308 25087
4.17.10 ea80a00a0b9711271491c6f09223f714bc5330043252e875050e359362a5b408 25087
4.17.9 1be6c0974caee56dfcf956c5aa29a2c747868c7ad7f450fc0ff94885abf3164b 25086
Version SHA256 Size (KB)
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
4.17.12 b534282f3cfcc39f39655d1fae0cd911af6c47272e933fcef11e4d5a1751e3cb 15724
4.17.11 de9b41d40318ff3347529bea9ef8c35ec303d0c3d821f8c858b54e95c1972f6d 15724
4.17.10 e26f340df82cf056d5127e450419ffdb0bbb962add1c0f540febac68d0f813c1 15724
4.17.9 f215ca3d6ae51454a5cb4709c78966511ec06d7e430f0d3cd7615b766e8a15dd 15726

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
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

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