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

34 lines
781 B
Plaintext

[id="installing-cli-linux_{context}"]
= Installing the Knative CLI for Linux
For Linux distributions, you can download the Knative CLI (`kn`) directly as a `tar.gz` archive.
.Procedure
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-linux-amd64.tar.gz[`kn` 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
----
====