1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 09:46:53 +01:00
Files
openshift-docs/modules/serverless-installing-cli-linux.adoc

34 lines
781 B
Plaintext
Raw Normal View History

2019-08-22 13:12:15 +01:00
[id="installing-cli-linux_{context}"]
2021-05-04 14:51:33 +02:00
= Installing the Knative CLI for Linux
2019-08-22 13:12:15 +01:00
2021-05-04 14:51:33 +02:00
For Linux distributions, you can download the Knative CLI (`kn`) directly as a `tar.gz` archive.
2019-08-22 13:12:15 +01:00
.Procedure
2021-05-04 14:51:33 +02:00
. Download the link:https://mirror.openshift.com/pub/openshift-v4/clients/serverless/latest/kn-linux-amd64.tar.gz[`kn` CLI].
2019-08-22 13:12:15 +01:00
. Unpack the archive:
+
[source,terminal]
2019-08-22 13:12:15 +01:00
----
$ tar -xf <file>
----
2021-05-04 14:51:33 +02:00
. Move the `kn` binary to a directory on your `PATH`.
. To check your `PATH`, run:
2019-08-22 13:12:15 +01:00
+
[source,terminal]
2019-08-22 13:12:15 +01:00
----
$ 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]
2019-08-22 13:12:15 +01:00
----
$ kn: No such file or directory
----
====