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.adoc
2020-09-30 18:43:42 +00:00

44 lines
827 B
Plaintext

// Module is included in the following assemblies:
//
// serverless/knative-client.adoc
[id="installing-cli-linux_{context}"]
= Installing the `kn` CLI for Linux
For Linux distributions, you can download the CLI directly as a `tar.gz` archive.
.Procedure
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest[CLI].
. Unpack the archive:
+
[source,terminal]
----
$ tar -xf <file>
----
. Move the `kn` binary to a directory on your PATH.
. To check your path, run:
+
[source,terminal]
----
$ echo $PATH
----
+
[NOTE]
====
If you do not use RHEL or Fedora, ensure that *libc* is installed in a directory on your library path.
If *libc* is not available, you might see the following error when you run CLI commands:
[source,terminal]
----
$ kn: No such file or directory
----
====