mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
43 lines
912 B
Plaintext
43 lines
912 B
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
|
|
|
|
For Linux distributions, you can download the `kn` CLI directly as a `tar.gz` archive.
|
|
|
|
// no prereqs?
|
|
|
|
.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
|
|
----
|
|
====
|