1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 15:46:57 +01:00
Files
openshift-docs/modules/developer-cli-odo-installing-odo-on-linux.adoc
2021-05-17 12:55:39 +00:00

97 lines
1.8 KiB
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/developer_cli_odo/installing-odo.adoc
[id="installing-odo-on-linux_{context}"]
= Installing {odo-title} on Linux
== Binary installation
.Procedure
. Obtain the binary:
+
[source,terminal]
----
# curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-amd64 -o /usr/local/bin/odo
----
. Change the permissions on the file:
+
[source,terminal]
----
# chmod +x /usr/local/bin/odo
----
== Tarball installation
.Procedure
. Obtain the tarball:
+
[source,terminal]
----
# sh -c 'curl -L https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-amd64.tar.gz | gzip -d > /usr/local/bin/odo'
----
. Change the permissions on the file:
+
[source,terminal]
----
# chmod +x /usr/local/bin/odo
----
== Installing with yum on {op-system-base-full}
.Procedure
. Register with Red Hat Subscription Manager:
+
[source,terminal]
----
# subscription-manager register
----
. Pull the latest subscription data:
+
[source,terminal]
----
# subscription-manager refresh
----
. List the available subscriptions:
+
[source,terminal]
----
# subscription-manager list --available --matches '*OpenShift Developer Tools and Services*'
----
. In the output of the previous command, find the `Pool ID` field for your {product-title} subscription and attach the subscription to the registered system:
+
[source,terminal]
----
# subscription-manager attach --pool=<pool_id>
----
. Enable the repositories required by `{odo-title}`:
+
[source,terminal]
----
# subscription-manager repos --enable="ocp-tools-4.7-for-rhel-8-x86_64-rpms"
----
. Install the `{odo-title}` package:
+
[source,terminal]
----
# yum install odo
----
. Verify that `{odo-title}` is now available on your system:
+
[source,terminal]
----
$ odo version
----