1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/serverless-installing-cli-linux-rpm-package-manager.adoc
2022-05-31 15:52:33 +00:00

70 lines
1.7 KiB
Plaintext

// Module included in the following assemblies:
//
// * serverless/cli_tools/installing-kn.adoc
:_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"
----
+
* Linux on IBM Z and LinuxONE (s390x)
+
[source,terminal]
----
# subscription-manager repos --enable="openshift-serverless-1-for-rhel-8-s390x-rpms"
----
+
* Linux on IBM Power (ppc64le)
+
[source,terminal]
----
# subscription-manager repos --enable="openshift-serverless-1-for-rhel-8-ppc64le-rpms"
----
. Install the Knative (`kn`) CLI as an RPM by using a package manager:
+
.Example `yum` command
[source,terminal]
----
# yum install openshift-serverless-clients
----