mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
53 lines
1.6 KiB
Plaintext
53 lines
1.6 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * cli_reference/developer_cli_odo/installing-odo.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="installing-odo-on-macos_{context}"]
|
|
|
|
= Installing {odo-title} on macOS
|
|
|
|
The `{odo-title}` CLI for macOS is available to download as a binary and as a tarball.
|
|
|
|
[cols="2,1,1",options="header"]
|
|
|===
|
|
|Operating System|Binary|Tarball
|
|
|macOS|link:https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64[odo-darwin-amd64]|link:https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64.tar.gz[odo-darwin-amd64.tar.gz]
|
|
|===
|
|
|
|
.Procedure
|
|
|
|
. Navigate to the link:https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/[content gateway] and download the appropriate file:
|
|
** If you download the binary, rename it to `odo`:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64 -o odo
|
|
----
|
|
** If you download the tarball, extract the binary:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-darwin-amd64.tar.gz -o odo.tar.gz
|
|
$ tar xvzf odo.tar.gz
|
|
----
|
|
. Change the permissions on the binary:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
# chmod +x odo
|
|
----
|
|
. Place the `{odo-title}` binary in a directory that is on your `PATH`.
|
|
+
|
|
To check your `PATH`, execute the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ echo $PATH
|
|
----
|
|
. Verify that `{odo-title}` is now available on your system:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ odo version
|
|
---- |