1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/cli-installing-cli-rpm.adoc

57 lines
1.2 KiB
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/openshift_cli/getting-started.adoc
[id="cli-installing-cli-rpm_{context}"]
= Installing the CLI by using an RPM
For {op-system-base-full}, you can install the OpenShift CLI (`oc`) as an RPM if you have an active {product-title} subscription on your Red Hat account.
.Prerequisites
* Must have root or sudo privileges.
.Procedure
. Register with Red Hat Subscription Manager:
+
----
# subscription-manager register
----
. Pull the latest subscription data:
+
----
# subscription-manager refresh
----
. List the available subscriptions:
+
----
# subscription-manager list --available --matches '*OpenShift*'
----
. In the output for the previous command, find the pool ID for an {product-title} subscription and attach the subscription to the registered system:
+
----
# subscription-manager attach --pool=<pool_id>
----
. Enable the repositories required by {product-title} {product-version}:
+
----
# subscription-manager repos --enable="rhel-7-server-ose-4.4-rpms"
----
. Install the `openshift-clients` package:
+
----
# yum install openshift-clients
----
After you install the CLI, it is available using the `oc` command:
----
$ oc <command>
----