1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/serverless-installing-cli-linux-rpm-package-manager.adoc
2023-11-15 11:13:03 +00:00

72 lines
1.8 KiB
Plaintext

// Module included in the following assemblies:
//
// * serverless/cli_tools/installing-kn.adoc
:_mod-docs-content-type: PROCEDURE
[id="serverless-installing-cli-linux-rpm-package-manager_{context}"]
= Installing the Knative CLI for Linux by using an RPM package manager
For {op-system-base-full}, you can install the Knative (`kn`) CLI as an RPM by using a package manager, such as `yum` or `dnf`. This allows the Knative CLI version to be automatically managed by the system. For example, using a command like `dnf upgrade` upgrades all packages, including `kn`, if a new version is available.
.Prerequisites
* You have an active {product-title} subscription on your Red Hat account.
.Procedure
. Register with Red Hat Subscription Manager:
+
[source,terminal]
----
# subscription-manager register
----
. Pull the latest subscription data:
+
[source,terminal]
----
# subscription-manager refresh
----
. Attach the subscription to the registered system:
+
[source,terminal]
----
# subscription-manager attach --pool=<pool_id> <1>
----
+
<1> Pool ID for an active {product-title} subscription
. Enable the repositories required by the Knative (`kn`) CLI:
+
* Linux (x86_64, amd64)
+
[source,terminal]
----
# subscription-manager repos --enable="openshift-serverless-1-for-rhel-8-x86_64-rpms"
----
ifndef::openshift-rosa[]
+
* Linux on {ibm-z-name} and {ibm-linuxone-name} (s390x)
+
[source,terminal]
----
# subscription-manager repos --enable="openshift-serverless-1-for-rhel-8-s390x-rpms"
----
+
* Linux on {ibm-power-name} (ppc64le)
+
[source,terminal]
----
# subscription-manager repos --enable="openshift-serverless-1-for-rhel-8-ppc64le-rpms"
----
endif::openshift-rosa[]
. Install the Knative (`kn`) CLI as an RPM by using a package manager:
+
.Example `yum` command
[source,terminal]
----
# yum install openshift-serverless-clients
----