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.adoc
2022-05-31 15:52:33 +00:00

51 lines
1.4 KiB
Plaintext

// Module included in the following assemblies:
//
// * serverless/cli_tools/installing-kn.adoc
:_content-type: PROCEDURE
[id="installing-cli-linux_{context}"]
= Installing the Knative CLI for Linux
If you are using a Linux distribution that does not have RPM or another package manager installed, you can install the Knative (`kn`) CLI as a binary file. To do this, you must download and unpack a `tar.gz` archive and add the binary to a directory on your `PATH`.
.Prerequisites
* If you are not using RHEL or Fedora, ensure that *libc* is installed in a directory on your library path.
+
[IMPORTANT]
====
If *libc* is not available, you might see the following error when you run CLI commands:
[source,terminal]
----
$ kn: No such file or directory
----
====
.Procedure
. Download the relevant Knative (`kn`) CLI `tar.gz` archive:
* link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-linux-amd64.tar.gz[Linux (x86_64, amd64)]
* link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-linux-s390x.tar.gz[Linux on IBM Z and LinuxONE (s390x)]
* link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-linux-ppc64le.tar.gz[Linux on IBM Power (ppc64le)]
. Unpack the archive:
+
[source,terminal]
----
$ tar -xf <filename>
----
. Move the `kn` binary to a directory on your `PATH`.
. To check your `PATH`, run:
+
[source,terminal]
----
$ echo $PATH
----