// 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
----
====
