-
For Linux:
$ oc image extract quay.io/openshift/origin-operator-registry:4.7.0 \ --path /usr/bin/registry/opm:. \ --confirm
-
For macOS:
-
Extract the binary:
$ oc image extract quay.io/openshift/origin-operator-registry:4.7.0 \ --path /usr/bin/registry/darwin-amd64-opm:. \ --confirm
-
Rename the file to
opm
:$ mv darwin-amd64-opm opm
-
-
For Windows:
-
Extract the binary:
C:\> oc image extract quay.io/openshift/origin-operator-registry:4.7.0 \ --path /usr/bin/registry/windows-amd64-opm:. \ --confirm
-
Rename the file to
opm.exe
:C:\> rename windows-amd64-opm opm.exe
-